Skip to content

Instantly share code, notes, and snippets.

@datapimp
Created August 13, 2013 21:32
Show Gist options
  • Save datapimp/6225903 to your computer and use it in GitHub Desktop.
Save datapimp/6225903 to your computer and use it in GitHub Desktop.

Project Setup

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

Deployment Instructions

  1. copy your public ssh key to the server

  2. 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

Settings

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment