简体   繁体   中英

What files in my Rails project are not safe to commit to a public repository?

For example, secret_token.rb should not be included. Are there others like this? I plan on starting a new Rails 4 app soon, and I'd like to make it completely open source.

You should not include any db/api keys/passwords/tokens, but this is simple - just store them in ENV variables (but remember to specify that in readme). As for Rails there's no other file that should really be kept secret.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM