Help with Github automatic deployments

2 years ago

I've configured Github Automatic deployments per the docs. My production service is linked to my /main branch in the repo. I further have PR environments enabled and give them the env vars of main.

  1. New Railway environments are created successfully whenever we create a new PR, however they don't appear to close after we merge and close the PRs.

  2. Also, the environments don't start with any services and therefore don't automatically deploy anything. The only workaround I've found is to manually enter the PR env in the Railway GUI and to sync the services with the ones running in the production environment.

  3. The Railway bot comments on our PRs but always says the environment's deleted. See screenshot.

How can I fix these issues? Thanks.

7 Replies

2 years ago

95e92fe0-66e9-4eed-86df-2cdc05218e79


2 years ago

1280205327400439800


2 years ago

I think the first and second issues are now resolved and a consequence of us not having enabled a base environment prior.


2 years ago

Hey sorry this got a bit lost, it's the first I've heard of #3 happening, are you able to provide reproducible steps? unfortunately we wouldn't be able to look into these kinds of one-off reports without reproducible steps.


2 years ago

I think the third issue has also been resolved by setting a base environment.


2 years ago

So this issue can be closed 😊


2 years ago

ah perfect, glad you were able to solve!


Loading...