a year ago
Hi,
I’m reaching out for help regarding issues with setting up a staging environment for my MedusaJS project on Railway. My production environment is running as expected, but I’ve encountered several problems when deploying the staging environment.
Overview of the Problem
Database Initialization:
In the staging environment, the database does not automatically create a default admin user or seed demo data, even though I’ve configured the DATABASE_URL and other necessary variables correctly.
I manually created an admin user, but I’m unsure if the database is fully initialized as it should be.
Storefront Issues:
Pages in the storefront are not working properly in the staging environment, even though they work perfectly in production.
Products assigned to categories in the admin panel do not appear in the storefront.
New Project Test:
When I spin up a new project with the same settings (as a fresh deployment), everything works as expected, including database initialization and storefront functionality. This suggests there might be something misconfigured or missing in my staging setup.
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
I just checked your staging environment. The logs says that your health check failed. Your database is not connecting. Can you redeploy your database and try to connect first before seeding data?
Status changed to Awaiting User Response Railway • about 1 year ago
7 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 7 months ago