mick / automidnight

Secret Project; Rails, Twilio, and Hot Snakes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automidnight

alt text

To set up the Monroe Park pilot, you'll want to set a MONROE_PILOT environment variable on your server to true.

For example, on Heroku:

heroku config:set MONROE_PILOT=true

To get going, you'll need to run the following rake tasks in this order:

rake db:migrate
rake reset:voice_files
rake reset:questions
rake property_data:import
rake property_data:add_monroe_phone_codes

Also, for now, we set the name of the survey in the environment. Example: SURVEY_NAME=iwtw

Heroku Deployment

To deploy on Heroku, you'll need to do the following:

# Turn on experimental env variable feature
heroku labs:enable user-env-compile
# Add the Postgresql add-on 
heroku addons:add heroku-postgresql
# Find the URL for the database by running the config command and set a DATABASE_URL variable
heroku config # Look for your postgres URL in the output!
heroku config:set DATABASE_URL=yourpostgresURLgoeshere

In production, you may want to set up Google Analytics (hard-coded ID for now, so need to tinker) with the environment variable used as a flag:

  • GOOGLE_ANALYTICS_ON=true

If you want HTTP basic authentication enabled, you can set the following environment variables:

  • LOCK_CITYVOICE=true
  • CITYVOICE_LOCK_USERNAME=myusername
  • CITYVOICE_LOCK_PASSWORD=mypassword

About

Secret Project; Rails, Twilio, and Hot Snakes


Languages

Language:Ruby 93.2%Language:JavaScript 3.3%Language:CSS 2.2%Language:CoffeeScript 1.3%