x4zx
x4zx
Explore posts from servers
RRailway
Created by x4zx on 6/30/2024 in #✋|help
Videos are not displayed
No description
7 replies
RRailway
Created by x4zx on 6/17/2024 in #✋|help
How can I connect my personal domain to the site?
No description
35 replies
RRailway
Created by x4zx on 5/3/2024 in #✋|help
Does Railway support working with Selenium?
I have a script that I use to get news to my discord server, it runs on selenium, so I would like to know if selenium can work correctly.
8 replies
RRailway
Created by x4zx on 4/16/2024 in #✋|help
How do I create a config file?
In the documentation for Railway configuration files, I saw that you can use the .toml format Previously I used JSON format, and now I have a little difficulty with the transfer, it is not quite clear how to write it correctly. My early config:
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"providers": ["python"],
"phases": {
"setup": {"nixPkgs": ["...", "nodejs"]},
"install_npm": {"cmds": ["npm ci --include=dev"], "dependsOn": ["setup"]},

"tailwind": {
"cmds": [
"npx tailwindcss -i static/tailwind/input.css -o static/tailwind/output.css"
],
"dependsOn": ["install"]
}
}
}
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"providers": ["python"],
"phases": {
"setup": {"nixPkgs": ["...", "nodejs"]},
"install_npm": {"cmds": ["npm ci --include=dev"], "dependsOn": ["setup"]},

"tailwind": {
"cmds": [
"npx tailwindcss -i static/tailwind/input.css -o static/tailwind/output.css"
],
"dependsOn": ["install"]
}
}
}
}
}
Desirable:
[build]
builder = "nixpacks"

[deploy]
startCommand = "uvicorn main:app"
restartPolicyType = "never"
[build]
builder = "nixpacks"

[deploy]
startCommand = "uvicorn main:app"
restartPolicyType = "never"
11 replies
RRailway
Created by x4zx on 12/4/2023 in #✋|help
Will the database be updated?
I wanted to connect MongoDB to my Django project, but unfortunately it's not officially supported by Django (I know there are different solutions like djongo, but that doesn't work for me), so I wondered if I could use the standard database as a db.sqlite3 file. I'm not going to store any disproportionate amount of data, all I need is to store a single user in my person and a couple of dictionaries with data. So the question arises, can I do this? Does Railway allow me to update the db.sqlite3 file? Will it work?
9 replies
RRailway
Created by x4zx on 11/26/2023 in #✋|help
What does memory consumption depend on?
No description
14 replies
RRailway
Created by x4zx on 10/27/2023 in #✋|help
Where do all the folders go?
No description
8 replies
RRailway
Created by x4zx on 10/21/2023 in #✋|help
Is it possible to store multimedia on Railway?
Previously (even before all the plans were changed) it was written that 100 gigabytes of storage was being given away for the standard $5 plan. I don't know what the situation is now. That's why I'm asking. If I have a site that needs somewhere to save files in the form of photos and videos (usually they are 2-3 megabytes in size), is it possible to do it with Railway? Let's say with the help of Volume? Ping me when you answer please
17 replies
RRailway
Created by x4zx on 10/18/2023 in #✋|help
Using yt-dlp to extract information
As far as I remember before when trying to use yt-dlp in a project - an error immediately appeared at the build stage. I would like to clarify this point now, as yt-dlp doesn't seem to violate the usage rules and it is not in https://railway.app/legal/fair-use. So I'd like to ask if it's possible to use it in projects now, I'll tell you up front - I need it for extracting information from tiktok videos, it will be something like that:
import yt_dlp

def get_tiktok(url):
ydl_opts = {'quiet': True, 'extract_flat': True}
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
info_dict = ydl.extract_info(url, download=False)
print(info_dict)

video_url = 'url to video'
get_tiktok(video_url)
import yt_dlp

def get_tiktok(url):
ydl_opts = {'quiet': True, 'extract_flat': True}
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
info_dict = ydl.extract_info(url, download=False)
print(info_dict)

video_url = 'url to video'
get_tiktok(video_url)
20 replies
RRailway
Created by x4zx on 10/4/2023 in #✋|help
MongoDB connection error
When trying to connect to the database, it gives this error:
Authentication failed.", full error: {'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed'}
Authentication failed.", full error: {'ok': 0.0, 'errmsg': 'Authentication failed.', 'code': 18, 'codeName': 'AuthenticationFailed'}
54 replies
RRailway
Created by x4zx on 8/13/2023 in #✋|help
Why is playwright not installing?
7 replies
RRailway
Created by x4zx on 7/30/2023 in #✋|help
Is it possible to specify PYTHONPATH in a project?
The thing is that when I run the application on my pc, I get the following error:
Traceback (last last last call):
File "F:\Projects\team works\keepa\keepa\venv\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 452, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "F:\Projects\team works\keepa\src\discord\omnibytes\cogs\edit.py", line 12, in <module>
from utils.product import ProductData
File "F:\Projects\team works\keepa\src\discord\omnibytes\utils\product.py", line 10, in <module>
from src.monitors.product import Product
ModuleNotFoundError: No module named 'src'

The above exception was the immediate cause of the following exception:

Traceback (most recent call last):
File "F:\Projects\team works\keepa\src\discord\omnibytes\main.py", line 32, in <module>
bot.load_extensions('cogs')
File "F:\Projects\team works\keepa\src\discord\omnibytes\main.py", line 22, in load_extensions
self.load_extension(extension_path)
File "F:\Projects\team works\keepa\venv\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 523, in load_extension
self._load_from_module_spec(spec, name)
File "F:\Projects\team works\keepa\venv\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 455, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
disnake.ext.commands.errors.ExtensionFailed: The 'cogs.edit' extension raised the following error: ModuleNotFoundError: No module named 'src'
Traceback (last last last call):
File "F:\Projects\team works\keepa\keepa\venv\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 452, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "F:\Projects\team works\keepa\src\discord\omnibytes\cogs\edit.py", line 12, in <module>
from utils.product import ProductData
File "F:\Projects\team works\keepa\src\discord\omnibytes\utils\product.py", line 10, in <module>
from src.monitors.product import Product
ModuleNotFoundError: No module named 'src'

The above exception was the immediate cause of the following exception:

Traceback (most recent call last):
File "F:\Projects\team works\keepa\src\discord\omnibytes\main.py", line 32, in <module>
bot.load_extensions('cogs')
File "F:\Projects\team works\keepa\src\discord\omnibytes\main.py", line 22, in load_extensions
self.load_extension(extension_path)
File "F:\Projects\team works\keepa\venv\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 523, in load_extension
self._load_from_module_spec(spec, name)
File "F:\Projects\team works\keepa\venv\Lib\site-packages\disnake\ext\commands\common_bot_base.py", line 455, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
disnake.ext.commands.errors.ExtensionFailed: The 'cogs.edit' extension raised the following error: ModuleNotFoundError: No module named 'src'
But when I type set PYTHONPATH=%PYTHONPATH%;F:\Projects\team works\keepa in the console, the error disappears.
73 replies
RRailway
Created by x4zx on 7/29/2023 in #✋|help
Deploy Application
How can I update the configuration file so that the src\discord\omnibytes\main.py file is launched on deployment? The railway.json file is currently:
{
"$schema": "https://railway.app/railway.schema.json",
{ "build": {
{ "builder": { "NIXPACKSPACKS",
"nixpacksPlan": {
{ "providers": ["python"]
}
},
}, "deploy": {
"startCommand": "",
{ "restartPolicyType": "ON_FAILURE",
}, "restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
{ "build": {
{ "builder": { "NIXPACKSPACKS",
"nixpacksPlan": {
{ "providers": ["python"]
}
},
}, "deploy": {
"startCommand": "",
{ "restartPolicyType": "ON_FAILURE",
}, "restartPolicyMaxRetries": 10
}
}
8 replies
RRailway
Created by x4zx on 7/6/2023 in #✋|help
How do I get the volume files right in django?
90 replies
RRailway
Created by x4zx on 7/6/2023 in #✋|help
Is it possible to combine django and tailwind css into a project?
I have a project developed on django and using the tailwind css framework which is installed via npm. Is it possible to create some configuration file for railway, so that besides running the site itself through python manage.py runserver, it also runs tailwind css. The command would look like this: npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
51 replies
RRailway
Created by x4zx on 6/6/2023 in #✋|help
Is it possible to transfer the "owner" of the project to another user?
Let's say I'm a freelancer - made a project for a person using Railway, to make everything work as it should. But since I completed the person's order, I am no longer associated with that person. And so I need to put the project in the hands of the customer.
6 replies
RRailway
Created by x4zx on 4/23/2023 in #✋|help
Please tell me if it is possible to put a music bot on your hosting?
I have a small music bot that knows how to include music from Spotify, and since your hosting is reliable, I would like to put the bot on it.
9 replies
RRailway
Created by x4zx on 3/15/2023 in #✋|help
How to host a django project using asgi?
Previously I used the railway template for django projects, but now I want to try to run it through asgi, but I don't know what to do.
8 replies
RRailway
Created by x4zx on 3/15/2023 in #✋|help
How can I open the site ?
5 replies
RRailway
Created by x4zx on 1/3/2023 in #✋|help
Constant restart of the bot
10 replies