See the Wiki.
You need to run a solr process during local development (or Cloud9 for those who used it). So bundle exec sunspot-solr start -p 8983
to start and bundle exec sunspot-solr stop
to stop (basically the steps in the .travis.yml). And the config in sunspot.yml should enable the app to connect properly.
When running locally, you can click the "Dev Login" button and login as either saas
(Instructor privilege) or saas-admin
(Admin privilege) with no password needed.
Currently set up to deploy to Heroku.
-
Provision a Heroku app and add the Websolr and Rollbar addons. There is a Websolr worker that periodically re-indexes the questions so that keyword search will work; you can run it manually with
heroku run rake sunspot:solr:reindex
-
Login to your GitHub account, go to Settings, then OAuth applications. Click "Register new application" and fill in the fields as follows:
- Application name: something you or your students will recognize
- Homepage URL:
https://
yourappname.herokuapp.com
- Description: something your students will recognize, or can leave blank
- Callback URL:
https://
yourappname.herokuapp.com/auth/github/callback
Make note of the "Client ID" and "Client Secret" GitHub assigns when you register the app.
-
In the Rollbar addon for Heroku, generate a Rollbar access token if you don't already have one.
-
You now need to tell Heroku the GitHub client and secret as well as the Rollbar access token. You can do this two ways.
- Manually: in the Heroku app dashboard, go to Config Variables and
manually enter values for
github_key
,github_secret
, andROLLBAR_ACCESS_TOKEN
(case is significant). - Semi-automatically: The app expects to find a
Figaro-friendly
config/application.yml
file with the keysgithub_key
(client ID),github_secret
, andROLLBAR_ACCESS_TOKEN
. Create the file, then runfigaro heroku:set -e production
to propagate these values ti Heroku.
-
Deploy:
git push heroku master
-
Setup the remote database:
heroku run rake db:migrate
-
Create the initial admin user based on their GitHub username:
heroku run rake setup:add_admin[github-username-here]
You should now be able to login.