zoiec
11/18/2016 - 8:17 PM

Capistrano gem commands

Capistrano gem commands

-- Staging Deploy --
bin/cap staging deploy -s branch=branch_name

-- Production Deploy --
bin/cap production deploy -s branch=branch_name

-- GET ec2 status --
bc staging ec2:status

-- Run command on server --
bin/cap production invoke HOSTS=192.168.0.1 COMMAND="cd /srv/gatekeeper && bin/foreman run rake accounts:update file=578365.csv"
bin/cap staging invoke COMMAND="ps aux"