Environment Variables

Railway provides the following additional system environment variables to all builds and deployments.

NameDescription
RAILWAY_STATIC_URLThe public domain, of the form example.up.railway.app
RAILWAY_GIT_COMMIT_SHAThe git SHA of the commit that triggered the deployment. Example: d0beb8f5c55b36df7d674d55965a23b8d54ad69b
RAILWAY_GIT_AUTHORThe user of the commit that triggered the deployment. Example gschier
RAILWAY_GIT_BRANCHThe branch that triggered the deployment. Example main
RAILWAY_GIT_REPO_NAMEThe name of the repository that triggered the deployment. Example myproject
RAILWAY_GIT_REPO_OWNERThe name of the repository that triggered the deployment. Example mycompany
RAILWAY_GIT_COMMIT_MESSAGEThe message of the commit that triggered the deployment. Example Fixed a few bugs

Edit this file on GitHub