Run cap
bundle exec cap production deploy
Kill processes by name
sudo pkill gunicorn
Restart a service
sudo systemctl restart gunicorn
Add log file (gunicorn.conf)
ExecStart=/bin/sh -c "/usr/local/bin/gunicorn -w 3 djangotodo.wsgi --log-file=/home/django/project/gunicorn.log --log-level=error"
Check configuration
python3 manage.py check --deploy
Define admin super user
python3 manage.py createsuperuser
ruby net-ssh on Windows use Pageant as ssh-agent, it should be installed on the local computer if deployment is started from Windows (git bash for example).