I am deploying the production environment of my ruby on rails application with the capistrano gem onto a virtual private server. I run the following command to deploy:
bundle exec cap production deploy
All seems to be working well unless I try to check what environment my current production release is operating in.
One way I use to check this is to run:
rails console
Rails.env
The answer I receive is "development" which is quite frightening.
During another test: when I run the following in my current release:
rails db
I get an error that states that mydatabase_development is not created.
My application seems to be running well but I do not know if this will cause major problems moving forward. First of all: Is there a way to determine if I my live copy is actually running in development? Secondly: Given that I have a problem, how do I configure capistrano to deploy a production environment?