PR Environments via CLI
Anonymous

3 years ago

PR Enviroments are only integrated for GitHub repos at the moment. It would be nice to provide similare functionallity via the CLI. Creating and removing/cleaning environments via the CLI would solve the problem for different providers than Github.

4 Replies

Can you provide more information on how you'd like to see this work? What usecase are you trying to solve?


wetendorff
TRIAL

2 years ago

@ngeloxyz, I'm employing Neon (PostgreSQL) with branching in my specific use case. A GitHub action automatically generates a corresponding Neon database branch when a new PR is created. The action returns a dynamic database URL particular to the new branch.

The challenge arises when I want to create a PR environment on Railway for this newly created PR. Given the dynamic nature of the database URL that changes with each new branch, I don't see a feasible way to accommodate this within Railway's PR environment feature in the UI. Its current design doesn't cater to this kind of variability in the database URL, which is necessary to my current workflow.

I hope this provides a good understanding of the use case that I am faced with.


alxc
PRO

2 years ago

Can you provide more information on how you'd like to see this work? What usecase are you trying to solve?

@angelo, I have the exact same problem.


nathanlindsay
PRO

2 years ago

I'm using Pierre instead of GitHub to deploy so would really like to be able to create new environments using the CLI


Loading...