前提・実現したいこと
ローカルでのアプリ開発が完了し、herokuにデプロイしようと思ってます。
しかし、タイトルにもあるように、デプロイが出来ません。
OS mac10.13
PHP7.1.14
laravel 5.6
発生している問題・エラーメッセージ
ターミナルでheroku open
を入力しても「403 Forbidden」となってしまいます。
原因と考えられる箇所
git push heroku master
をしたあとに下記のエラーが出たのが原因だと考えています。
WARNING: Your 'composer.json' contains a non-'stable' setting remote: for 'minimum-stability'. This may cause the installation of remote: unstable versions of runtimes and extensions during this deploy. remote: It is recommended that you always use stability flags instead, remote: even if you have 'prefer-stable' enabled. For more information, remote: see https://getcomposer.org/doc/01-basic-usage.md#stability
試したこと
こちらのqiitaの記事を参考にさせていただきました。
この記事の中で紹介されている、composer require ext-intl:*
も下記のエラーが出ました。
Could not find a matching version of package ext-intl. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).
この記事の中のcomposer require ext-intl:*
と「HTTPSを強制する」以外は実行済みです。
エラー文を読むと、It is recommended that you always use stability flags instead
とあるのでcomposer.jsonにstableを追加しないといけないと思ったのですが、どこにどう追加するのか分かりませんでした。
↓composer.json
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": "^7.1.3", "consoletvs/charts": "6.1", "doctrine/dbal": "^2.7", "fideloper/proxy": "^4.0", "laravel/framework": "5.6.*", "laravel/tinker": "^1.0" }, "require-dev": { "filp/whoops": "^2.0", "fzaninotto/faker": "^1.4", "mockery/mockery": "^1.0", "nunomaduro/collision": "^2.0", "phpunit/phpunit": "^7.0" }, "autoload": { "classmap": [ "database/seeds", "database/factories" ], "psr-4": { "App\": "app/" } }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "extra": { "laravel": { "dont-discover": [ ] } }, "scripts": { "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "@php artisan key:generate" ], "post-autoload-dump": [ "Illuminate\Foundation\ComposerScripts::postAutoloadDump", "@php artisan package:discover" ] }, "config": { "preferred-install": "dist", "sort-packages": true, "optimize-autoloader": true }, "minimum-stability": "dev", "prefer-stable": true }

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。