Skip to content

Instantly share code, notes, and snippets.

@izawa
Last active August 29, 2015 14:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save izawa/058019c5d88e8d65203c to your computer and use it in GitHub Desktop.
Save izawa/058019c5d88e8d65203c to your computer and use it in GitHub Desktop.
% git clone https://github.com/keiko713/rails-todo.git
% cd rails-todo
% bundle install --without production
% foreman run bundle exec rake db:migrate
% foreman start
localhost:5000 で確認する。
% Heroku create
% git remote -v
% heroku rename <keiko-todo> ←なにかわかりやすい名前
% git push heroku master
% heroku run rake db:migrate
% heroku open
heroku への deploy で ssh の鍵がdefault で違っているひとは、
~/.ssh/Config に
host heroku.com
IdentityFile ~/.ssh/id_rsa-heroku
こんな風に書くと良い。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment