Keep a sample database.yml file in the application so people can see how you have it setup, and add config/database.yml to your .gitignore. Secondly, reference the key from another file, again providing a sample of that file and adding it to .gitignore. I do the first for rboard, but not the second (and I probably should if I had it hosted somewhere)
2009/8/27 Joshua Partogi <[email protected]> > Dear all, > If I want to distribute a rails application, what is the best practice/ the > proper way to do it. > > At the same time I want to use this application for myself, but there are > some files that has my private information. > e.g: > 1. my database settings in database.yml > 2. the secret key > > Do I just ignore these files with git? or do I manually change it everytime > I want to push it? What is the recommended way to do it? > > Regards, > > -- > http://blog.scrum8.com > http://twitter.com/scrum8 > > > > -- Ryan Bigg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en -~----------~----~----~----~------~----~------~--~---
