$ git clone git://github.com/omggroup/volunteer_tracker.git volunteer
$ cd ./volunteer
$ cp config/database.yml.example config/database.yml
Configure your config/database.yml
$ bundle install
$ rake db:create
There are 2 different application with separated DB:
for master branch
$ psql volunteer_tracker < ./db/ggf_data.psql
for event_hub branch
$ psql volunteer_tracker_event_hub < ./db/eh_data.psql
Staging server of master there - http://volunteer.23stages.com/ (admin credentials - admin@example.com // password)
Staging server of event_hub there - http://volunteer2.23stages.com/
Deploy master branch
- $
cap staging deploy
Deploy event_hub branch
- $
cap staging2 deploy
Deploy master branch
- $
cap production deploy
- $
brew install ssh-copy-id
- $
ssh-copy-id username@hostname
- deploy with migrations:
$ cap deploy:migrations
- connect via ssh
$ cap ssh
- show application logs
$ cap log
- start rails console
$ cap console
Hope, you'll enjoy Volunteer Tracker!
Cheers, Droid Labs.