LoginSignup
3
3

More than 5 years have passed since last update.

Herokuでよく使うコマンド

Last updated at Posted at 2014-12-28

Heoroku postgress設定

ターミナル
##アプリ作成
$ heroku create [<app_name>]
$ git remote add heroku git@heroku.com:<app_name>.git
$ git push heroku master
# rejectなんたらでデプロイが完了できない場合
$ git push heroku master -force
$ heroku run rake db:migrate

##デプロイ
$ git push heroku master

#ブラウザで開く
$ heroku open

##Console
$ heroku run rails console

##Batchの実行
$ heroku run rails runner lib/tasks/parse.rb


##Logの出力
$ heroku logs --tail

##DBのリセット
$ heroku pg:reset DATABASE
3
3
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
3
3