Passwords in git tree + Heroku + Github

一世执手 提交于 2019-12-18 12:55:21

问题


I have a very basic application done in Sinatra I have deployed it in Heroku (http://frasesbarrio.heroku.com)

There is a button for sharing in Facebook and in fact it can be used as a Facebook application. For Facebook authentification, my application has its own app id and app secret (right now they are two constants in the main file of the source)

I also want to share my code in Github for everyone to enjoy.

How can I send the code with the app id and secret to Heroku and without them to Github in a maintainable fashion? (I mean that I will keep changing the app now and then, deploying and sending to Github after every change)


回答1:


Check out Config vars - it can store id/secret separate from app code.



来源:https://stackoverflow.com/questions/5203320/passwords-in-git-tree-heroku-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!