Skip to content

Getting started as a developer

haplesshero13 edited this page May 24, 2012 · 5 revisions

Setup

  • git clone git@github.com:jasonLaster/DGD.git
    • Or fork the repo, and clone your own fork!
  • bundle install
    • You may have to gem install bundler first if you haven't before
  • rake db:migrate
    • This updates the db schema
  • rake import_spreadsheet_data_into_db
    • This adds groups to db
  • rake install_hooks
    • This will install our custom git-hooks which insert the build number into the VERSION file.

Development

By default, rails runs in developer mode on port 3000. So if you run rails s your app will be at http://0.0.0.0:3000.

To run in production mode, run rails s -e production, but you must have installed and run memcached -d (memcached in daemon mode) to do this first. (You can also run memcached in regular mode by just running memcached.) To install on Mac, do a sudo port install memcached if you're behind the times, or brew install memcached if you're more current.

Clone this wiki locally