Skip to content

Rails:console doesn't work for weird production setups #11

@petitJAM

Description

@petitJAM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions