I’m trying to make my project OSS, and I’d like to remove any sensitive info from the configs. I’m trying to have ENV['DB_PASS'] = mypassword. Where would I set this? I’ve tried export DB_PASS=mypassword in my .bashrc file. But that’s not working.
I’m trying to make my project OSS, and I’d like to remove any sensitive
Share
Are you sure
exportisn’t working? Have you triedecho $DB_PASS? (Also, changes to .bashrc won’t take effect until the next time you log in.)A more common way to handle this problem is to create a separate config file that is not tracked in your repository, and then provide a
config.samplefile demonstrating the common configuration options but with dummy values.