0
0

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 3 years have passed since last update.

Herokuの使い方(基本)

Posted at

#herokuの基本コマンドの流れ

heroku login --interactive // Herokuの画面を表示させず、ターミナル上でログイン
 →その後 メールアドレス、パスワードを入力

heroku create // herokuのアプリを作る

git push heroku main // github上にプッシュしているプロジェクトをアップロード

heroku logs // herokuの直近のイベントを表示する

heroku logs --tail // イベント発生のたびに自動表示する(Ctrl-Cで終了)

アプリケーションにDBを使用していて以下のエラーが出た時

ActionView::Template::Error (PG::UndefinedTable: ERROR:  relation "users" does
not exist

以下のコマンドを実行する

heroku run rails db:migrate

これでSQLも反映される。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?