Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Installation

Stephen Yeargin edited this page Aug 12, 2014 · 10 revisions

Pre-requisites

  • Bundler (gem install bundler)
  • Bower (npm install bower -g)
  • PosgtresSQL (brew install postgresql)
  • Mailcatcher (gem install mailcatcher)
  • Heroku Toolbelt (for deployment to server, reading configs)
  • An Amazon S3 bucket for ticket files (see heroku config for credentials)

Install Steps

  1. Clone the repository into your projects directory
  2. Execute bundle install (for required gems)
  3. Execute bower install (for required JS assets)
  4. Execute rake db:setup (creates the development and test database and seeds the initial data)
  5. Run rake test to verify that existing tests pass
  6. Run mailcatcher to bring up the local email transport (registration fails without it)
  7. Execute rails server to bring up a local instance
  8. Register for an account through the normal process

Environment Variables

The following are used within the application:

  • SEATSHARE_S3_KEY - S3 credentials to use for storing ticket files
  • SEATSHARE_S3_SECRET - S3 credentials to use for storing ticket files
  • SEATSHARE_S3_BUCKET - Bucket name to use for storing ticket files
  • SEATSHARE_S3_PUBLIC - Public address for S3 downloads
  • SIMPLE_FORM_API_TOKEN - The private API token for a Simple Form instance
  • SIMPLE_FORM_FORM_API_TOKEN - The public API token for a Simple Form instance
  • SODA_USERNAME - Username for SODA from XML Team
  • SODA_PASSWORD - Password for SODA from XML Team
  • SODA_ENVIRONMENT - Either development or production
  • MANDRILL_SMTP_USER - User identifier for Mandrill (production only)
  • MANDRILL_SMTP_PASS - API key for Mandrill (production only)
  • MANDRILL_SMTP_HOST - Hostname to use with Mandrill (production only)
  • GOOGLE_ANALYTICS_ID - Google Analytics profile identifier (production only)
  • MIXPANEL_API_KEY - API key for Mixpanel (production only)

The easiest way to do this is to create a file called config/local_env.yml (see the example file in that directory). When configuring on Heroku, you will simply add these as configuration settings. To see the current production values, simply run heroku config.

Clone this wiki locally