Skip to content
Hobby: first environment-change apply fails before a deployment record exists
demas
OP

3 hours ago

On Railway Hobby, an initial staged environment-change apply reported acceptance, then appeared as Failed. No build or deployment record was created, and the service remains offline. The source and private variable settings were not retained. No deployment retry has been made.

Please clarify:

  1. What can cause an environment-change operation to fail before any build or deployment record exists, and how can I obtain a sanitized failure code without exposing variable values or change-history contents?
  2. Should private environment variables be applied before GitHub repository connection, or together with it? How can they be saved without unintentionally starting a deployment?
  3. Is there a supported alternative using the Railway CLI or dashboard to apply these changes in separate, observable steps?
  4. How can a specific reviewed GitHub commit be deployed using a Dockerfile while preventing uncontrolled automatic deployments of later commits?
  5. Could any Hobby-specific account, resource or GitHub integration restriction explain a pre-build failure, and where can its sanitized status be checked?

Please keep guidance public and generic. I will not post credentials, secret hashes, private repository details, internal resource identifiers, database endpoints, private paths or screenshots of variable history. This is a request for guidance only; please do not replay the operation, deploy, change resources or subscriptions. A human/provider clarification would be appreciated; please distinguish documented behavior from inference.

Awaiting User Response

1 Reply

Railway
BOT

3 hours ago

This thread isn't linked to a project, so we can't see your failed apply or what caused it, and we can't give you a sanitized failure code or an account-level status for it from here.

You can apply the changes in separate, observable steps. First create an Empty Service with no source and click Deploy. That applies the service but doesn't run any application. While the service still has no source, add your private variables and other settings, then click Deploy again. Before each Deploy, review everything that's staged, because Deploy applies the environment's staged changes. Connect the source only as the last step, and that step starts the first build.

After a service is linked to a repository, it deploys new commits to the connected branch automatically. You can turn that off with Disable under automatic deployments (Controlling GitHub Autodeploys). railway up uploads and deploys a local directory, so you can run it from a checkout of the commit you reviewed. Afterwards, railway deployment list shows each deployment's status.


Status changed to Awaiting User Response Railway • about 3 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...