Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.42 KB

INSTALL.md

File metadata and controls

37 lines (29 loc) · 1.42 KB

install instructions for heroku and MongoDB Atlas

  1. install meteor and heroku tool-belt
  1. clone the repo
  • git clone https://github.com/HackRU/helpq.git
  1. init config
  • ./create_config
  • set LCS.URL in private/config.json
  • git add config.json
  • git commit -m "DONT PUSH THIS TO ORIGIN"
  1. create heroku instance
  • heroku login
  • heroku apps:create <helpq-name>
  1. set build pack
  • heroku buildpacks:set https://github.com/AdmitHub/meteor-buildpack-horse.git
  1. setup MongoDB atlas or mLab and get the connection string
  • for atlas login and create a new cluster, or use an existing one
  • under security add a new user with readWriteAnyDataBase@admin. meteor needs this to tail the oplog
  • then on overview click connect>connect your application>3.4 or earlier
  • you should get a connection of the format mongodb://user:@shard1:27017,shard2:27017,shard3:27017/test?ssl=true...
  • fill in the password you set up and change the db from /test to /meteor
  • make sure you go to security > ip whitelist > add ip address > add current ip address
  1. set environment for heroku
  • heroku config:add MONGO_URL=<url we found above>
  • heroku config:add ROOT_URL=http://<helpq-name>.herokuapp.com
  1. make sure you have heroku remote and push to heroku
  • git remote -v
  • git push heroku master