Skip to content
Staging environment isn't working
dansteryoo
OP

3 years ago

When i try to hit my staging environment it's returning a server error. I think there's a bug. Production works fine.

17 Replies

3 years ago

What error is it returning?


dansteryoo
OP

3 years ago

i attached a screenshot. says it can't read undefined of "my" but that's not part of my code.


3 years ago

could be some error from minification, are you making sure to have nixpacks build and run your app with the same version of node that you developed the app with?


dansteryoo
OP

3 years ago

yups.


dansteryoo
OP

3 years ago

do you have any other suggestions?


3 years ago

Are you missing some service variables?


dansteryoo
OP

3 years ago

I am not.


3 years ago

incorrect build or start command?


dansteryoo
OP

3 years ago

could you elaborate? all the settings are the same as production. i only changed the code in my app.


3 years ago

Then it looks like your code has broken something.


dansteryoo
OP

3 years ago

My code run's fine in local and prod.


3 years ago

Unfortunately, that doesn't rule out a code or config issue. Please make sure you have the container's environment as close to your local environment as possible.


dansteryoo
OP

3 years ago

how do i do that? the configurations on the railway dashboard are exactly the same.


3 years ago

Then I'm not sure what else could it be besides a difference in the code.


dansteryoo
OP

3 years ago

Are you sure it's not the build process in the staging environment that railway setup?


3 years ago

You are in near full control of them, if there are issues in that regard it would point to a code or config issue.


dansteryoo
OP

3 years ago

ok thanks.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...