Porting rails from git to heroku
- service url :
http://sheepweb.herokuapp.com/
- source :
- server side : https://github.com/doohee323/sheepshare
- front-end : https://github.com/doohee323/sheepweb
ㅇ Prerequites
- ror app in github
- opening account in heroku
https://id.heroku.com/signup
- installing heroku toolbelt
https://toolbelt.herokuapp.com/
1. git clone
git clone git@github.com:doohee323/heepshare.git heepshare
$ cd heepshare/
$ bundle install
$ bundle update
$ rake db:migrate
$ rails s
http://localhost:3000
2. add ssh key
ssh-keygen -t rsa
heroku keys:add
heroku keys (checking keys)
cf. if you have got 5 apps in heroku, you have to remove one.
https://dashboard.heroku.com/apps
3. create app
$ heroku create sheeprails
$ RAILS_ENV=production rake assets:precompile
4. git config
$ git config --global user.email "doohee323@gmail.com"
$ git config --global user.name "Dewey Hong"
$ git status
$ git add .
$ git commit -m "precompile"
$ git status
$ git remote -v
heroku git@heroku.com:sheepshare.git (fetch)
heroku git@heroku.com:sheepshare.git (push)
origin https://github.com/doohee323/sheepshare.git (fetch)
origin https://github.com/doohee323/sheepshare.git (push)
5. push app to heroku
$ git push heroku master
6. rake db
$ heroku run rake db:migrate
7. service check
$ heroku open
Comments
Post a Comment