3 ms·
For webapps with vps backends the recommendation is to use environment variables. In order to get said environment variables onto the remote machines I tend to
by msencenb 10y ago
For webapps with vps backends the recommendation is to use environment variables. In order to get said environment variables onto the remote machines I tend to use Ansible in conjunction with ansible-vault for encryption.
- tom_b 10y agoMy experience using environment variables as recommended above has been positive. I currently maintain a Clojure web app (a REST server really) and have found that maintaining configuration options, like a keystore and keystore password, in environment variables is really nice. Having the exact same code base in dev, test, and production with separate configs specific to the environment simplifies dev life. The one issue that has popped up here with the env var approach is that our system administrators are not used to the idea and this creates friction when deploying new apps or updated certs.
- Cedricgc 10y agoHelpful resource describing this: https://12factor.net/config https://12factor.net/config