Hi All, I have all my configuration values in environment variables.
But this seems to break down for running tests. We only have 1 .env file that we source from .rvmrc. So the same environment variables are used for both development and test (rails console and rake spec) The solution for handling the 2 environments with one set of variables is currently to hack ENV['DATABASE_NAME'] in spec_helper and use code like this all over the place: ENV['RABITMQ_URL'] + ENV['DATABASE_NAME'] Or to hardcore the test environment values in the yml files. and add Rails.env.test? int he ruby code. As you'd imagine, this is starting to break down. I assume the solution is to have 2 different environments, but I'm not sure how to do this. Where would I load in the second environment file so I don't by mistake run rails console in the test environment or vice versa and blow away my environment. How are other people handling the 2 different environments? Thanks for any insight, Keenan -- -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "Heroku Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
