Nahasco
Explore posts from serversHow to disable Dockerfile in a service?
So I have multiple services including Django and Celery. Both use the same code but their start commands should be different.
Since I am using a Dockerfile to build and start my Django service, it is automatically detected and applied to the celery service too.
I want my celery service to have a different start command but railway is forcing the dockerfile on both.
How to fix that?
27 replies
container event container died when trying to deploy with dockerfile
I needed to use a dockerfile to install some important dependencies but now the deployment is failing on me with "container event container died" message in the deploy logs.
this is my dockerfile.
attached are the logs.
48 replies
Django Allowed Hosts Error "Invalid HTTP_HOST header: '0.0.0.0:8000'"
I am getting this error sent to my admin email from the application I deployed on railway.app
and
The application works fine with no issues but I randomly get these errors sent to the admin email.
Do I add these to addresses to my allowed hosts? Are these the addresses associated with my railway project?
8 replies
Application failed to respond error on an active deployment
I ran railway run with a new start command and now the application is not accessible because of this error.
Here is my railway.json
Before it was like this and it worked perfectly
I appreciate any help
18 replies
Postgres Database private url, is it faster and how to use it?
I have a Django rest framework setup with postgress db and it seems the connection is slow.
I noticed there is a database private url and i wonder if this is a faster connection. If it is how can I configure it in my project?
I read the doc article about private networking but I am new here and couldnt really understand how to do it.
Any help is greatly appreciated.
Thanks.
41 replies
Cron jobs with Django
What is the way to setup cron jobs with django on railway? I tried the usual way of dockerizing my app but docker compose isnt supported on railway. What other options do I have?
(Newbie here, came from using heroku scheduler)
11 replies