Error where node.js server game instantly crashes
s4m-b4r
HOBBYOP

8 months ago

railway deployment from git instantly crashes.

27 Replies

8 months ago

Are you using a Dockerfile?


s4m-b4r
HOBBYOP

8 months ago

this is a school project for coursework so i dont know much but i dont think im using a docker file


s4m-b4r
HOBBYOP

8 months ago


8 months ago

Do you have a file named Dockerfile?


s4m-b4r
HOBBYOP

8 months ago

nope


s4m-b4r
HOBBYOP

8 months ago

i haven’t finished coding it yet but i wanted a server to start hosting it on


8 months ago

Works for me :D

1421560348741337301


8 months ago

Have you modified the root directory or start command?


s4m-b4r
HOBBYOP

8 months ago

i don’t think so


8 months ago

Please check


s4m-b4r
HOBBYOP

8 months ago

okay give me a couple of minutes


s4m-b4r
HOBBYOP

8 months ago

where do i find the root directory and start commands


8 months ago

Service settings


s4m-b4r
HOBBYOP

8 months ago

i dont think i have

1421563295655133265

1421563296464769024


8 months ago

Have you tried just redeploying?


s4m-b4r
HOBBYOP

8 months ago

yes


8 months ago

What are your environmental variables?


s4m-b4r
HOBBYOP

8 months ago

does it work for you on the actual url


s4m-b4r
HOBBYOP

8 months ago

1421563684789944431


8 months ago

Yes


8 months ago

Did you point it to 8080?

1421563788800425994



s4m-b4r
HOBBYOP

8 months ago

thank you so much i changed the port because i thought it was meant to be set to 3000


8 months ago

Honestly couldn't tell you why it's using 8080 when looking at your code, but it is, so oh well.


s4m-b4r
HOBBYOP

8 months ago

should i change it in the code to 8080


8 months ago

Doesn't really matter


s4m-b4r
HOBBYOP

8 months ago

okay thank you


Welcome!

Sign in to your Railway account to join the conversation.

Loading...