Railway Up

Screenshot of Railway Up

Use the Railway CLI to deploy your project from the command line. In a connected project run

The current directory will be deployed to the currently selected Railway project and environment. Run railway status to see which project and environment will be used.

All deployments will appear in the deployments view on your project dashboard. Clicking on the build will bring up the build and deploy logs. Each deploy gets a unique URL and is considered immutable.

Port Variable

If you are starting a server, you need to use the PORT environment variable. This is how Railway can expose your deployment. If you see a "Bad Gateway" error, you most likely are not listening on PORT.

Edit this file on GitHub