10 months ago
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?
0 Replies
This is my docker file.
I tried removing the start commands and placing them manually in the railway dashbaord as a custom start command but it didnt deploy, the logs were empty.
I think there is an issue with paths?
10 months ago
simply set the needed start command in the service settings
10 months ago
please go back to that and then we can debug from there
10 months ago
and what errors are you getting?
10 months ago
what have you set the start command to?
sleep 3 && celery -A tibianbackend worker -l INFO --concurrency=2 workerprefetch_multiplier=1
had the same issue before wiht my other service, defining a start command causes the service not to start at all
another thing i wanna mention is that i tried making 2 nixpack config files and defining them in the service settings separately, each with a different start command, however railway didnt pick up on them and decided to build on the default builder config
10 months ago
remove the sleep 3 &&
10 months ago
as long as you are on the V2 runtime there is no need for a sleep
got something this time
Starting Container
container event container died
similar situation to my django service earlier, like i mentioned
10 months ago
I'll look at your project when I'm back on my computer to see if something else has been missconfigured
10 months ago
the last changes made to the celery service was 6 hours ago???
10 months ago
the django fail from ~1h ago was likely because you ran railway up from the wrong dir
10 months ago
ah my bad, I don't think an environment was mentioned? will look at staging
10 months ago
hey, sorry for the delay here but im not seeing any issues with the services in staging? django is running correctly and so is celery, both service logs reflect this?