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.

git push heroku masterで起きたエラー

Posted at

新しくアプリを作り、git push heroku masterをしたところ、下記のエラーが発生。

Failed to install gems via Bundler.

他のエラー文を見てみると、

Your bundle only supports platforms ["x86_64-darwin-17"] but your local platform
remote:        is x86_64-linux. Add the current platform to the lockfile with `bundle lock
remote:        --add-platform x86_64-linux` and try again.
remote:        Bundler Output: Your bundle only supports platforms ["x86_64-darwin-17"] but your local platform
remote:        is x86_64-linux. Add the current platform to the lockfile with `bundle lock
remote:        --add-platform x86_64-linux` and try again.

調べてみると、どうやら
「あなたのbundlerでは、あなたのPCのOSをサポートしてません。あなたのPCもサポートする設定をして、再度やり直してください。」
という意味らしい。

エラー文に書いてあるコマンドを実行。

①bundle lock --add-platform x86_64-linux
②Gemfile.lockの記述が追加されるので、その変更をリモートにpush
③再度git push heroku master

remote: Verifying deploy... done.
To https://git.heroku.com/xxxxxx.git
 * [new branch]      master -> master

うまくいった!

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?