LoginSignup
0
1

More than 3 years have passed since last update.

Herokuにsshログインしてコマンドを実行する

Last updated at Posted at 2020-11-29

以下のコマンドでHerokuにsshログインしてコマンドを実行できます。
your_app_name の部分は自分のHerokuアプリケーションの名前に変更してください。

heroku login
heroku ps:exec -a your_app_name

参考
Key generation for Heroku deployments
https://github.com/laravel/passport/issues/267#issuecomment-392222152

自分の場合、ローカル環境ではLaravel passportの実装が上手く動いていたのですが、本番のHerokuでは上手く動作せず、sshログインしてコマンドを実行する事でエラーを解決することができました。

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