Skip to content

Instantly share code, notes, and snippets.

@jywarren
Last active Aug 26, 2015
Embed
What would you like to do?
c9.io setup scripts
# Warning: The contents of the database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: mysql2
username: <username>
password:
database: publiclab_test
encoding: utf8
pool: 5
timeout: 5000
# is this comment a random misplaced note?? -btbonval
# no, it's a reminder to how to get a schema.rb out of a pre-existing db. it's how we got the Drupal schema.rb out of a Drupal database without reconstructing it manually. -jywarren
# rake db:schema:dump
# This database will be used by default when running `passenger start`
development:
adapter: mysql2
username: <username>
password:
encoding: utf8
database: publiclab
production:
adapter: mysql2
username: <username>
password:
encoding: utf8
database: publiclab
sudo apt-get install imagemagick ruby-rmagick
rvm install ruby-2.1.2
bower install
bundle install
rake db:setup
rake db:migrate
rake db:seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment