- Create a heroku account
- Create new heroku app
- Install heroku tool-belt
- Create mLab account
- Create database
- Get MongoDB URI
- Deploy a Stonecutter instance, as found at
https://github.com/d-cent/stonecutter
- Login as an admin
- Navigate to Apps page
- Add an app for your Mooncake instance
- Get client ID and secret, as generated by Stonecutter
-
Clone the repository:
git clone https://github.com/d-cent/mooncake.git
-
Log in to your Heroku account:
heroku login
-
Add Heroku remote:
heroku git:remote -a [APP_NAME]
-
Set buildpacks:
heroku buildpacks:set heroku/nodejs heroku buildpacks:add heroku/clojure
-
Set Config Vars on Heroku
- BASE_URL = [app uri]
- AUTH_URL = [Stonecutter url]
- CLIENT_ID = [Stonecutter client id]
- CLIENT_SECRET = [Stonecutter client secret]
- MONGO_URI = [MongoDB URI from mLab]
- HOST = 0.0.0.0
- ACTIVITY_SOURCE_FILE = resources/activity-sources.yml
-
Update, add and commit the resources/activity-sources.yml file
-
Push to Heroku