前提・実現したいこと
PHP(Laravel)でシステムを作っています。
Herokuへデプロイする際に、急にエラーが出てデプロイできなくなってしまいました。
どのようにしたらよろしいでしょうか。
発生している問題・エラーメッセージ
remote: [BadMethodCallException] remote: Method forceScheme does not exist. remote: remote: remote: Script php artisan optimize handling the post-install-cmd event returned with error code 1 remote: ! Push rejected, failed to compile PHP app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to ticketreserve. remote: To https://git.heroku.com/ticketreserve.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/ticketreserve.git'
該当のソースコード
PHP
1$ git push heroku master
試したこと
色々調べて
$ git pull origin master
をしてみましたが、
Already up-to-date.
と出るだけで解決しませんでした。
heroku logsの出力結果
2018-06-06T10:55:39.046830+00:00 heroku[router]: at=info method=GET path="/lives/6/reserve" host=ticketreserve.herokuapp.com request_id=6e0fd20d-1c4c-423a-8336-c68b47af32b3 fwd="175.177.5.4" dyno=web.1 connect=0ms service=223ms status=200 bytes=4573 protocol=http
2018-06-06T10:55:39.046747+00:00 app[web.1]: 10.67.237.54 - - [06/Jun/2018:10:55:38 +0000] "GET /lives/6/reserve HTTP/1.1" 200 3998 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
2018-06-07T03:27:21.162670+00:00 app[web.1]: 10.9.237.87 - - [07/Jun/2018:03:27:21 +0000] "GET / HTTP/1.1" 200 2113 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1
2018-06-07T03:27:21.161624+00:00 heroku[router]: at=info method=GET path="/" host=ticketreserve.herokuapp.com request_id=10e34d6d-16a5-4b95-a4b7-69daf05a2a2c fwd="175.177.5.4" dyno=web.1 connect=0ms service=34ms status=200 bytes=2692 protocol=http
2018-06-07T03:27:21.652651+00:00 heroku[router]: at=info method=GET path="/apple-touch-icon-120x120-precomposed.png" host=ticketreserve.herokuapp.com request_id=f2854265-32de-4303-952d-034dd8fe2fd9 fwd="175.177.5.4" dyno=web.1 connect=0ms service=28ms status=404 bytes=15122 protocol=http
2018-06-07T03:27:21.650294+00:00 app[web.1]: 10.61.153.83 - - [07/Jun/2018:03:27:21 +0000] "GET /apple-touch-icon-120x120-precomposed.png HTTP/1.1" 404 14901 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0
2018-06-07T03:27:22.067748+00:00 heroku[router]: at=info method=GET path="/apple-touch-icon-120x120.png" host=ticketreserve.herokuapp.com request_id=20f39921-84a7-4ff7-bf26-9ab7b9019fd4 fwd="175.177.5.4" dyno=web.1 connect=0ms service=22ms status=404 bytes=15122 protocol=http
2018-06-07T03:27:22.066263+00:00 app[web.1]: 10.61.153.83 - - [07/Jun/2018:03:27:22 +0000] "GET /apple-touch-icon-120x120.png HTTP/1.1" 404 14901 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0
2018-06-07T03:27:22.280204+00:00 app[web.1]: 10.61.153.83 - - [07/Jun/2018:03:27:22 +0000] "GET /apple-touch-icon-precomposed.png HTTP/1.1" 404 14901 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0
2018-06-07T03:27:22.282211+00:00 heroku[router]: at=info method=GET path="/apple-touch-icon-precomposed.png" host=ticketreserve.herokuapp.com request_id=5a051dac-6e3c-4a1a-8569-e25c8b540bae fwd="175.177.5.4" dyno=web.1 connect=0ms service=11ms status=404 bytes=15122 protocol=http
2018-06-07T03:27:22.523999+00:00 heroku[router]: at=info method=GET path="/apple-touch-icon.png" host=ticketreserve.herokuapp.com request_id=f97bd9d6-0037-44e3-b4a7-8fb90177b644 fwd="175.177.5.4" dyno=web.1 connect=0ms service=16ms status=404 bytes=15122 protocol=http
2018-06-07T03:27:22.522484+00:00 app[web.1]: 10.61.153.83 - - [07/Jun/2018:03:27:22 +0000] "GET /apple-touch-icon.png HTTP/1.1" 404 14901 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0
2018-06-07T03:27:22.821200+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=ticketreserve.herokuapp.com request_id=e6839402-f11f-4f5f-ad9b-89ff4f9a6920 fwd="175.177.5.4" dyno=web.1 connect=0ms service=2ms status=200 bytes=4266 protocol=http
2018-06-07T03:27:22.820492+00:00 app[web.1]: 10.61.153.83 - - [07/Jun/2018:03:27:22 +0000] "GET /favicon.ico HTTP/1.1" 200 4030 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0
2018-06-07T04:09:55.000000+00:00 app[api]: Build started by user xxxxxxx@gmail.com
2018-06-07T04:10:02.000000+00:00 app[api]: Build failed -- check your build logs
conposer.jsonの中身
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.",
"laravelcollective/html": "5.1.",
"kbwebs/multiauth": "~1.0",
"doctrine/dbal": "^2.5",
"payjp/payjp-php": "~1.0",
"guzzlehttp/guzzle": "~6.0",
"sendgrid/sendgrid": "~7"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-root-package-install": [
"php -r "copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\Foundation\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\Foundation\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist"
}
}
補足情報(FW/ツールのバージョンなど)
PHP 5.6
Laravel 5.1
Cloud9
回答2件
あなたの回答
tips
プレビュー