Staging environment isn't working
dansteryoo
PROOP

2 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

brody
EMPLOYEE

2 years ago

What error is it returning?


dansteryoo
PROOP

2 years ago

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

Attachments


brody
EMPLOYEE

2 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
PROOP

2 years ago

yups.


dansteryoo
PROOP

2 years ago

do you have any other suggestions?


brody
EMPLOYEE

2 years ago

Are you missing some service variables?


dansteryoo
PROOP

2 years ago

I am not.


brody
EMPLOYEE

2 years ago

incorrect build or start command?


dansteryoo
PROOP

2 years ago

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


brody
EMPLOYEE

2 years ago

Then it looks like your code has broken something.


dansteryoo
PROOP

2 years ago

My code run's fine in local and prod.


brody
EMPLOYEE

2 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
PROOP

2 years ago

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


brody
EMPLOYEE

2 years ago

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


dansteryoo
PROOP

2 years ago

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


brody
EMPLOYEE

2 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
PROOP

2 years ago

ok thanks.


Loading...