3 months ago
Hello,
I am deploying a Docker container. The same Dockerfile must be deployable with different envars defined in different .env files, according to the environment where the container is deployed (eg: local, beta, prod).
It would be great to specify in railway.json the path to the .env file to be used to populate the envars for the deployment.
Is this already possible? Is this something in your roadmap?
Thanks
Pinned Solution
3 months ago
Using the Railway public API.
3 Replies
Status changed to Awaiting Railway Response Railway • 3 months ago
3 months ago
railway.json is for build/deploy config, not for selecting a .env file to import variables from.
3 months ago
What is the best solution to automate the setting of the environment variables into the railway deployment?
gmarciani
What is the best solution to automate the setting of the environment variables into the railway deployment?
3 months ago
Using the Railway public API.
Status changed to Solved 0x5b62656e5d • about 1 month ago