Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passwords in git tree + Heroku + Github

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)

like image 639
Jordi Avatar asked Mar 05 '11 10:03

Jordi


1 Answers

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

like image 158
miah Avatar answered Oct 13 '22 20:10

miah