4 years ago
I am currently trying to add a nice 1-click "Deploy on Railway" button to an OSS project I maintain. It nearly works, however there is one breaking issue for me.
My app uses an environment variable with the app's public url to do a bunch of pre-processing/setup (things like establishing webhooks with a third party service). I'm able to use the RAILWAY_STATIC_URL to get this.
However, when setting the app up via a starter button, a random URL is assigned to the app, and this is the value that is used during these startup steps. If the user then changes the url from the dashboard, the app continues to run with the old url settings still in place. Additionally, I am not able to find any way to simply restart the container in order to load in the new environment vars. It would be great to add one more step to the starter app setup where the user can specify a url, e.g.- my-app.up.railway.app
1 Replies
3 years ago
Yes that would be nice