LoginSignup
2
1

More than 5 years have passed since last update.

Herokuでハマったこと(no Cedar-supported app detected)

Last updated at Posted at 2014-12-14

deployするためにherokuを使ってみようと思って、ちょっとハマったのでメモメモ

herokuの設定について

「herokuとは?」といったことから大まかな流れは下記を参照しました。
 ※ http://blog.gufii.net/weblog/archives/10

ハマリポイント

サイトを見てハマリポイントはだいたい2つ


herokuではDBはPostgreSQL(pg)推奨!!

  • developmentやtest環境でPostgreSQL以外を使っている場合は、Production用のDBの設定を変える必要があります。(詳しくは後述のサイト[1*]を参照)
  • MySQLを使う場合は、下記のコマンドでアドオンを追加
$ heroku addons:add cleardb:ignite 

※参考>> http://straitwalk.hatenablog.com/entry/2013/08/11/004648


index.phpを作成しなければならない

今回ハマったのはコッチ↓↓
下記の2点がポイントです!
- git push herokuした時に、no Cedar-supported app detectedって出てくる
- index.phpは「.git」のおいてあるディレクトリに作成する

エラーメッセージの意味がよくわからないのですが、index.phpがないとpushでエラーが起こります。
ファイルには何書いても問題無い。



その他のトラブルシューティングもここにまとめられています。
1*:http://gam0022.net/blog/2013/09/17/run-rails4-on-heroku/



追伸:
Oakbowさん、色々と指摘いただき、ありがとうございます。

2
1
1

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
2
1