LoginSignup
37
31

More than 5 years have passed since last update.

herokuにRailsアプリをアップしたが、うまくいかないケース

Last updated at Posted at 2015-11-29

RailsのアプリをHeroku上にアップする作業の復習中に発生した問題(書きなぐり。あとで推敲します)

Herokuにデプロイしたが うまく動かない?!

こんなエラーが

前提
※1 heroku上に 'xxx-yyy-7140' というURIを持つアプリが存在しない
※2 アップしたいのは 'app-exist-2345' というURI

ここで、herokuにデータをpushしようとしたら、gitがないって怒られた。

$ git push heroku master
remote: !   No such app as xxx-yyy-7140.
fatal: repository 'https://git.heroku.com/xxx-yyy-7140.git/' not found

先人の対応

stackoverflowに、同様のケースがあった。

gitのリモートURLを変更する。

git remote set-url heroku https://git.heroku.com/boiling-falls-6570.git

そして 再度pushする。

git push heroku master

できた

(追記)プリコンパイルの必要性

assetsのプリコンパイルも必要。

37
31
3

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
37
31