In VirtualBadge, we have a production environment name vb_edge but the stage is called production. So cap production rails:console should connect me to the production server and enter the console in the vb_edge environment, however it still sets RAILS_ENV to production:
$ cap production rails:console
ssh deploy@www.virtualbadge.com -p 22 -t 'cd /home/deploy/rails_apps/eureka/current; RAILS_ENV=production bundle exec rails console'
set :rails_env, "vb_edge" is called in /config/deploy/production.rb, so cap should probably be using those settings.
In VirtualBadge, we have a production environment name
vb_edgebut the stage is calledproduction. Socap production rails:consoleshould connect me to the production server and enter the console in thevb_edgeenvironment, however it still setsRAILS_ENVto production:set :rails_env, "vb_edge"is called in/config/deploy/production.rb, so cap should probably be using those settings.