POC BDSM Slave Register
- Install Git from https://git-scm.com/downloads
- Create an ssh key
ssh-keygen -t rsa -C [EMAIL] -f $HOME/.ssh/id_heroku
chmod 600 $HOME/.ssh/id_heroku*
- Copy the content from public key from $HOME/.ssh/id_heroku.pub
- Create a heroku account at https://signup.heroku.com
- Go to https://dashboard.heroku.com/account
- Scroll to bottom and add public key to the SSH Keys section
- Go to https://dashboard.heroku.com/apps
- Press New/Create new app
- On App Name, type a [APPNAME]
- Click 'Create App' button
- Click on 'Resources' tab
- Click on 'Find more add-ons' button
- Scroll down until you see 'mLab MongoDB', press on that one
- Click on 'Login to Install', a small screen will popup and select the [APPNAME] you create, follow the screen make sure to select Free/Sanbox
- The mLab interface should give you a mongodb: url, it url may look like this
mongodb://username:[email protected]:25469/dbname
- Change the username, password and dbname to your own.
- Go to https://dashboard.heroku.com/apps/[APPNAME]/deploy/heroku-git #change [APPNAME] to your app
- Scroll down a bit until you see 'Deploy using Heroku Git', install heroku toolbelt from https://toolbelt.heroku.com/
heroku login
#use the credentials use when creating the account above.git clone https://github.com/TBSR/bdsm-slave-register [APPNAME]
cd [APPNAME]
./localenv [APPNAME]
heroku local #app will run locally on http://localhost:5000
- or
git push heroku master