Questions tagged [railway]

101 questions
0
votes
1 answer

How can I modify the nginx configuration in Railway?

I'm getting a "413 Request Entity Too Large" when uploading images to my Laravel app deployed with Railway (which is using Nixpacks). I've seen other questions that this can be solved by modifying the "client_max_body_size 20M;" in in…
Nil Suria
  • 474
  • 4
  • 15
0
votes
0 answers

why does postman throws 500 internal server error when sending POST request?

It's my first time building user auth using railway MySQL database and when I make a POST request in Postman, it returns 500 Internal Server Error. I write the code in 3 files: userRepository.js, userService.js and userController.js. Here is…
fay
  • 21
  • 3
0
votes
0 answers

'Closing Connection' error while hosting Django application on Railway with Gunicorn Server

I am currently trying to host a Django application on Railway, but I am facing an issue in the Gunicorn server which keeps getting stuck at [DEBUG] Closing Connection. status, below are my logs. gunicorn.conf.py # Non logging stuff bind =…
0
votes
1 answer

Unable to load my static files in Django production environment

I am deploying my Django application to Railway. I am following this guide, https://docs.djangoproject.com/en/4.2/howto/static-files/deployment/#how-to-deploy-static-files. The app was deployed successfully but cannot load the static files. I…
jethro-dev
  • 249
  • 1
  • 5
  • 12
0
votes
0 answers

Why my database is not showing anything in railway? (Python/Flask Web Application)

I've used Raiway.app to deploy this code: https://github.com/lucascvalle/Ninja-JutsuBattle-Website It's a Python/Flask Web Application that uses Flask for its backend and CSS and HTML for a basic view of the website. First i've created a PostgreSQL…
0
votes
1 answer

How to exclude media folder when deploying to railway

I have a django app hosted in railway, when I push the changes to github railway overrides the media folder as well and I lose all my images, is there a way to exclude the media folder from changing? (I tried gitignore and it didn't work), I'm using…
Hakim
  • 11
  • 1
  • 7
0
votes
0 answers

How schedule python script on railway app?

I launched python script for tg bot on railway app and there is a limitation on 500 hours a month. I can remove my deploy every evening and rollback every morning to fin into these hours but can it be automated?
0
votes
0 answers

Configuration for Celery during deployment

I am trying to deploy a django app on railway where I am using celery for sending email and redis as celery_broker but When I deploy it then celery don't send emails. I also use Redis Cloud and use the url of it as celery_broker_url. I want to know…
0
votes
0 answers

webpack error: [webpack-cli] Error: Conflict: Multiple chunks emit assets to the same filename styles/styles.ab6b56e41b61fd0ef6a6.css

I'm getting a webpack error when I try to deploy a project to Railway. My styles file is in styles>index.scss. Would appreciate any suggestions as to how to fix, thanks in advance. sample code: #13 12.67 [webpack-cli] Error: Conflict: Multiple…
hayden
  • 11
  • 3
0
votes
1 answer

I cannot deploy my app. It keeps crashing. I dont know why

Tried to deploy my railway app via django. But it wont post and crashes instead. No idea why my railway app keeps crashing. Only error I see is for TK, which i verified is installed. What is the problem? Here is the log: File "
0
votes
0 answers

Can i use one github account in several railway accounts?

I don't know if i can use one account in just one of several railway accounts, i did'nt test because i am afraid of only one be allowed. I am a web programmer and i'm develop a website for a family member. The railway acceps a not new github account…
0
votes
1 answer

ConnectionError [SequelizeConnectionError]: connect ETIMEDOUT when deploying on Railway

I was trying to deploy my first backend project made with** express, sequelize and postgresql** until I got the above error when Railway (the service I am using for deploying) was running the "npm start command". That doesn't happen locally. I…
gunman
  • 1
  • 1
0
votes
0 answers

Cookies are set in local devlopment but not in production

I'm using React frontend hosted on netlify(swiftreseller.netlify.app) , NestJS on the backend. While working on localhost, I was able to set cookies in backend response when logging in. But when I hosted the backed on…
0
votes
1 answer

Using GCS for media storage on Railway.app

I'm deploying my Django app to Railway.app and am hosting media on GCS (I like the free tier). I've created the service account and received the .json of the credentials. On my local system for dev, I have the .json file in the directory and refer…
Thomas
  • 1
  • 1
0
votes
0 answers

Railway. NGINX. 413 Request Entity Too Large. Laravel app

i am deploying an app in Railway that handles file uploads. I get this error if the file is greater than 1mb. I have tried this solutions but i dont have a /etc/nginx folder…