Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.13 KB

Heroku.md

File metadata and controls

39 lines (32 loc) · 1.13 KB

Deployment to Heroku

Heroku account setup:

  • Create a heroku account
  • Create new heroku app
  • Install heroku tool-belt

mLab database setup

  • Create mLab account
  • Create database
  • Get MongoDB URI

Stonecutter set up

  • 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

Local Heroku configuration:

  • 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