Sveltekit Dockerfile
My sveltekit project requires node v20 so I created a dockerfile for it:
I tested on my local system and the dockerfile runs but on railway it says completed and there are no deply logs.
Solution:Jump to solution
do you have a build or start command set elsewhere like in the service settings, if so, remove them.
22 Replies
Project ID:
b820c80e-50e9-475a-85c6-89832fccdd8c
b820c80e-50e9-475a-85c6-89832fccdd8c
remove the port stuff from the dockerfile
All the port stuff?
Even the expose?
it's not needed
I tried that and same thing happens
completed with no logs
what browser are you on? can you see logs from other services you've deployed
Chrome, I can see logs of everything else
can you see build logs for this service?
yeah
Solution
do you have a build or start command set elsewhere like in the service settings, if so, remove them.
Yeah I had a custom start command I used previously that is still there. Should I remove it?
yes
it would be overwriting the ENTRYPOINT
could have unintended side effects
same issue
are you able to share the repo? im not sure if i could be of further help if im not able to reproduce this
Sure, whats your gh username?
brody192
Added
I can also share the railway project if that would help
maybe but we will hold off on that for right now
Oh wait im so stupid :facepalm: i removed the custom build command but not the custom start one
it works now
ty for the help
well at least i was right haha
please dont close posts