问题
So the other day I was trying to replicate some of the tests that were being ran by circleci and before some of the commands I called:
export RAILS_ENV=test
export RACK_ENV=test
and now I guess the problem is that I seem to be stuck in test
?
Also, I've tried executing those same commands except with each of the vars set to development, yet to no avail.
Any ideas?
回答1:
try 'unsetting' those env variables.
export RAILS_ENV=
export RACK_ENV=
or try restarting the server to set them back to default.
来源:https://stackoverflow.com/questions/19667526/rails-env-issue