behrouz.babaki
`railway up` always deploys to `production` environment
Project ID: 9f4e3a16-38d9-4e01-ac73-ad467f026405
I use railway CLI to deploy a web app on railway. I used a Dockerfile for deployment.
The deployment to production has been always successful. Recently, I forked a
stage
environment from the production
environment. However, it seems that I cannot switch to this environment, and the build is always deployed to production
.
Here are the steps to replicate this scenario:
1. export the RAILWAY_TOKEN
environment variable
2. install railway cli: npm i @railway/cli
3. deploy to stage
: ./node_modules/@railway/cli/bin/railway up --environment stage
I have also tried to switch to stage
using railway environment
. After choosing stage
in the menu, I recieve this message: Activated environment stage
. However, when I run railway status
right after that, I receive ... Environment: production ...
20 replies