###前提・実現したいこと
PHPでオセロ(リバーシ)の対戦ができるLINEbotを作っています。
Herokuにデプロイしようとすると、下記のようなエラーが発生してしまいます。
プロジェクトを新しく作り直しても同じようなエラーが再度発生してしまいます。
色々調べて試しましたが、エラーが解消できないので皆様のお知恵を拝借したいです。
###発生している問題・エラーメッセージ
2017-09-28T05:25:31.824096+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=reversi-new.herokuapp.com request_id=a75754c9-e965-458f-ae39-b1e819d1c278 fwd="106.161.146.250" dyno= connect= service= status=503 bytes= protocol=https 2017-09-28T05:25:32.568935+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=reversi-new.herokuapp.com request_id=330193f7-88ea-4db5-bed7-5c8fdbac7078 fwd="106.161.146.250" dyno= connect= service= status=503 bytes= protocol=https 2017-09-28T05:28:43.983822+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="/" host=reversi-new.herokuapp.com request_id=4a0f4f13-77ea-4b51-b0aa-b953e3d74930 fwd="203.104.156.74" dyno= connect= service= status=503 bytes= protocol=https 2017-09-28T05:46:18.441539+00:00 heroku[web.1]: State changed from crashed to starting 2017-09-28T05:46:19.504116+00:00 heroku[web.1]: Starting process with command `vendor/bin/heroku-php-nginx -C nginx_app.conf` 2017-09-28T05:46:22.093475+00:00 app[web.1]: Using Nginx server-level configuration include 'nginx_app.conf' 2017-09-28T05:46:22.138909+00:00 app[web.1]: Optimizing defaults for 1X dyno... 2017-09-28T05:46:22.312452+00:00 app[web.1]: 4 processes at 128MB memory limit. 2017-09-28T05:46:22.316467+00:00 app[web.1]: Starting php-fpm... 2017-09-28T05:46:24.317920+00:00 app[web.1]: Starting nginx... 2017-09-28T05:46:24.320619+00:00 app[web.1]: nginx: [emerg] invalid number of arguments in "rewrite" directive in /app/nginx_app.conf:2 2017-09-28T05:46:24.321007+00:00 app[web.1]: Process exited unexpectedly: nginx 2017-09-28T05:46:24.321106+00:00 app[web.1]: Going down, terminating child processes... 2017-09-28T05:46:24.399406+00:00 heroku[web.1]: Process exited with status 1 2017-09-28T05:46:24.416638+00:00 heroku[web.1]: State changed from starting to crashed
###該当のソースコード
heroku
1下記のコマンドを順に打ちました。 2 3$ cd my-project/ 4$ git init 5$ heroku git:remote -a reversi-new 6 7$ git add . 8$ git commit -am "make it better" 9$ git push heroku master 10 11$ heroku logs 12 13 14
###試したこと
再度プロジェクトを新規で作り、heroku cliのコマンドを指示通り入力しましたが改善しませんでした。
###補足情報(言語/FW/ツール等のバージョンなど)
あなたの回答
tips
プレビュー