I have a Rails project PROJECTX, which is hosted on Heroku. For storing production configs and files, I am using a different repository PROJECTX-config. Is it possible to:
- clone PROJECTX-config,
- remove current config files, and
- symlink config files to PROJECTX-config files
Note that this has to be done on Heroku. Also I am aware that Heroku has options to maintain configs using environment variables, but this is not what I am looking for.
Thanks!
No its not possible.
Or at least not without a Rube Goldberg machine like setupe where you setup some kind of automation (like a post-commit hook) to merge repo A and repo B and push the result to heroku.
Heroku does not agree here.
Although you might be overestimating what you actually need to store in ENV vars. You only need to store secrets such as API keys in ENV.
Other non-secret configuration such your settings for various gems can and should be setup in
config/initializers
.If you still think using the GUI is that terrible then use YAML files which you parse and use to set the ENV vars:
Or you could even store a serialized form (JSON or YAML) in a single env var - there is a total size limit of 32kb though.