Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
zsiec edited this page Mar 10, 2012 · 13 revisions

Welcome to the code-for-america wiki!

Deploying the Application

In addition to the typical push to heroku and db setup. The following must be done:

  1. Run the rake task, cache_civic_commons_application_data. This task retrieves application data from civic commons.
  2. Create an admin user via the sign up page. Then toggle that user's admin flag manually via the heroku console.
  3. Setup the heroku add-on Heroku Scheduler: For running the rake task, cache_civic_commons_application_data. The frequency of running it is based on how often you may think data on civic commons is updated.
  4. Setup the heroku add-on Sendgrid: For allowing the system to send out emails
  5. Setup the heroku add-on Websolr: For enabling full text search on a variety of forms.
  6. Edit the facebook_app_id in config/social_networks.yml under production with your facebook application id.
  7. You can change the twitter account that is mentioned by default by going to app/views/deployed_applications/_social_network_modal.html.erb and editing the data-via attribute of the twitter link.

You must also be sure that the S3_SECRET environment variable is set as well.

Administering the Application

You cannot add a deployed application in the admin panel. The 'Add New' button is on the deployed application but it will not work because a deployed application needs to have the context of what application its deploying.