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

4 months ago

railway deployment from git instantly crashes.

27 Replies

samgordon
PRO

4 months ago

Are you using a Dockerfile?


s4m-b4r
HOBBYOP

4 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

4 months ago


samgordon
PRO

4 months ago

Do you have a file named Dockerfile?


s4m-b4r
HOBBYOP

4 months ago

nope


s4m-b4r
HOBBYOP

4 months ago

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


samgordon
PRO

4 months ago

Works for me :D

1421560348741337300


samgordon
PRO

4 months ago

Have you modified the root directory or start command?


s4m-b4r
HOBBYOP

4 months ago

i don’t think so


samgordon
PRO

4 months ago

Please check


s4m-b4r
HOBBYOP

4 months ago

okay give me a couple of minutes


s4m-b4r
HOBBYOP

4 months ago

where do i find the root directory and start commands


samgordon
PRO

4 months ago

Service settings


s4m-b4r
HOBBYOP

4 months ago

i dont think i have

1421563295655133200
1421563296464769000


samgordon
PRO

4 months ago

Have you tried just redeploying?


s4m-b4r
HOBBYOP

4 months ago

yes


samgordon
PRO

4 months ago

What are your environmental variables?


s4m-b4r
HOBBYOP

4 months ago

does it work for you on the actual url


s4m-b4r
HOBBYOP

4 months ago

1421563684789944300


samgordon
PRO

4 months ago

Yes


samgordon
PRO

4 months ago

Did you point it to 8080?

1421563788800426000



s4m-b4r
HOBBYOP

4 months ago

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


samgordon
PRO

4 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

4 months ago

should i change it in the code to 8080


samgordon
PRO

4 months ago

Doesn't really matter


s4m-b4r
HOBBYOP

4 months ago

okay thank you


Loading...