Monday, July 02, 2018

Run commands on server using Capistrano 3

Add :

require 'capistrano/console'

to Capfile

Now you can run:


bundle exec cap production console


This allows you to run commands on the server terminal. Useful to run commands like: uptime.