- Ruby (>2.2.0) installed via
rvm
- MongDB
- ports
22
and9292
should be reachable by you
- Install required gems:
bundle install
- Set env vars:
export SERVER_IP=<ip_address> # public IP address of the target host
export REPO_NAME=<account/name> # repo name to fetch the code from, e.g. Artemmkin/reddit
export DEPLOY_USER=deploy # username used to connect via SSH
- Deploy using capistrano:
bundle exec cap production deploy:initial