Skip to content
Rei edited this page Jul 14, 2014 · 11 revisions

Prepare server (First deploy)

Run this on server:

yourserver:~ $ git clone git@github.com:chloerei/campo.git
yourserver:~ $ cd campo
yourserver:~/campo $ ./script/setup_server.sh

This will install all dependency and prepare deploy directory for deploy.

Deploy via capistrano

Edit deploy script

Edit config/deploy/production.rb, change your server setting, for example:

server 'example.com', roles: %w( web app db ), user: 'deploy'

cap deploy

Run this on local:

~/campo $ cap production deploy

After deploy finishied, open http://example.com, campo should running.

Security Tips

Go Security page.