Amazon and Heroku Secret Keys

I use S3 in this application for downloadable files since Heroku has a read-only file system. How can I transfer my s3.yml to Heroku, but not check it in the main repository?

+4
source share
2 answers

Check out http://docs.heroku.com/config-vars , the first example on the page is exactly what you are trying to do.

Edit '2015: now the page is https://devcenter.heroku.com/articles/config-vars and the second page you are looking for.

+5
source

An alternative solution is to create a new local branch where you modify .gitignore, so the secret-file can be clicked on the hero. DO NOT move this branch to the Github repository.

To direct a non-leading branch to a hero, use:

git push heroku secret-branch:master 

More information can be found at:
https://devcenter.heroku.com/articles/multiple-environments#advanced-linking-local-branches-to-remote-apps

Use heroku run bash and then ls to check if your secret file was clicked on the hero or not

Advantages over other solution:
Keep the secret file in your favorite format;)

0
source

Source: https://habr.com/ru/post/1309460/


All Articles