0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

heroku デプロイ関係のコマンド

Last updated at Posted at 2019-02-28

login

$ heroku login

herokuの接続先URLを

確認

$ git remote -v

登録

$ git remote add heroku https://git.heroku.com/*******.git

変更

$ git remote heroku set-url https://git.heroku.com/*******.git
(***はrepository名)

heroku URLの確認

https://dashboard.heroku.com/apps
-> Personal/各repository/Settings/Info : Heroku Git URL

push

$ git push heroku master

migration

$ heroku run rails db:migrate

アプリ起動

$ heroku open

ssh接続

$ heroku run bash
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?