First clone the project, and copy the config/database.yml.example to config/database.yml and config/settings.yml.example to config/settings.yml and edit the configuration for your specific settings.
Then install the gems, get your database ready
cd society
bundle
bundle exec rake db:drop:all db:create:all db:schema:load db:migrate
db:seed db:test:prepare
Then start the rails server.
bundle exec rails s
-
copy your public ssh key to the server
-
locally deployment uses capistrano
bundle exec cap staging deploy
# production
bundle exec cap production deploy
note: You can configure each stage in the config/deploy directory
The config/settings.yml file is not committed to version control, and is in the /home/deploy/rails_apps/society/shared/private folder on the deploy targets.
This file works like a typical database.yml file which has application specific settings like API keys for external services such as facebook and customer.io