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?

本番環境でRailsコンソールを開くコマンド

Last updated at Posted at 2024-08-21

いつも忘れて30分ほど時間を浪費するので備忘録
しかもちょっと違うと全然開けないのが結構きつい。

本番環境でRailsコンソールを開く

RAILS_ENV=production bundle exec rails c

RAILS_ENVは前

RAILS_ENV=productionはどちらにせよ末尾につけるのではなく、前につける

rails ではなくて bundle exec rails

rails cで開こうとしても開けない。
bundle exec rails cを使い開く。

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?