前提
□こちらでLaravel環境構築
【Laravel 5.5 or latest】Homestead で mac に Laravel 開発環境を構築
□最低限のVueにするためこちらで構築
examplecomponent.vueを少し編集しただけのデータです
LaravelからVue.jsを使う最短レシピ
※記事ではnpmだが、herokuアップを前提にしているのでyarnに置き換えて動作確認(仮想環境VirtualBox+Vagrant+homesteadにて)
herokuデプロイ
□参考記事
Laravel5.4 + Vuejsのアプリをherokuで公開する手順
log
1-----> PHP app detected 2-----> Bootstrapping... 3-----> Installing platform packages... 4 - php (7.3.5) 5 - ext-mbstring (bundled with php) 6 - apache (2.4.39) 7 - nginx (1.14.2) 8-----> Installing dependencies... 9 Composer version 1.8.5 2019-04-09 17:46:47 10 Loading composer repositories with package information 11 Installing dependencies from lock file 12 Package operations: 42 installs, 0 updates, 0 removals 13 - Installing doctrine/inflector (v1.3.0): Downloading (100%) 14 - Installing doctrine/lexer (v1.0.1): Downloading (100%) 15 - Installing erusev/parsedown (1.7.3): Downloading (100%) 16 - Installing symfony/polyfill-ctype (v1.11.0): Downloading (100%) 17 - Installing vlucas/phpdotenv (v2.6.1): Downloading (100%) 18 - Installing symfony/css-selector (v4.2.8): Downloading (100%) 19 - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Downloading (100%) 20 - Installing symfony/polyfill-mbstring (v1.11.0): Downloading (100%) 21 - Installing symfony/var-dumper (v3.4.27): Downloading (100%) 22 - Installing symfony/routing (v3.4.27): Downloading (100%) 23 - Installing symfony/process (v3.4.27): Downloading (100%) 24 - Installing paragonie/random_compat (v9.99.99): Downloading (100%) 25 - Installing symfony/polyfill-php70 (v1.11.0): Downloading (100%) 26 - Installing symfony/http-foundation (v3.4.27): Downloading (100%) 27 - Installing symfony/contracts (v1.1.0): Downloading (100%) 28 - Installing symfony/event-dispatcher (v4.2.8): Downloading (100%) 29 - Installing psr/log (1.1.0): Downloading (100%) 30 - Installing symfony/debug (v3.4.27): Downloading (100%) 31 - Installing symfony/http-kernel (v3.4.27): Downloading (100%) 32 - Installing symfony/finder (v3.4.27): Downloading (100%) 33 - Installing symfony/console (v3.4.27): Downloading (100%) 34 - Installing symfony/polyfill-php72 (v1.11.0): Downloading (100%) 35 - Installing symfony/polyfill-intl-idn (v1.11.0): Downloading (100%) 36 - Installing symfony/polyfill-iconv (v1.11.0): Downloading (100%) 37 - Installing egulias/email-validator (2.1.7): Downloading (100%) 38 - Installing swiftmailer/swiftmailer (v6.2.1): Downloading (100%) 39 - Installing ramsey/uuid (3.8.0): Downloading (100%) 40 - Installing psr/simple-cache (1.0.1): Downloading (100%) 41 - Installing psr/container (1.0.0): Downloading (100%) 42 - Installing symfony/translation (v4.2.8): Downloading (100%) 43 - Installing nesbot/carbon (1.37.1): Downloading (100%) 44 - Installing mtdowling/cron-expression (v1.2.1): Downloading (100%) 45 - Installing monolog/monolog (1.24.0): Downloading (100%) 46 - Installing league/flysystem (1.0.51): Downloading (100%) 47 - Installing laravel/framework (v5.5.45): Downloading (100%) 48 - Installing fideloper/proxy (3.3.4): Downloading (100%) 49 - Installing jakub-onderka/php-console-color (v0.2): Downloading (100%) 50 - Installing nikic/php-parser (v4.2.1): Downloading (100%) 51 - Installing jakub-onderka/php-console-highlighter (v0.4): Downloading (100%) 52 - Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%) 53 - Installing psy/psysh (v0.9.9): Downloading (100%) 54 - Installing laravel/tinker (v1.0.8): Downloading (100%) 55 Generating optimized autoload files 56 > Illuminate\Foundation\ComposerScripts::postAutoloadDump 57 > @php artisan package:discover 58 Discovered Package: fideloper/proxy 59 Discovered Package: laravel/tinker 60 Discovered Package: nesbot/carbon 61 Package manifest generated successfully. 62-----> Preparing runtime environment... 63-----> Checking for additional extensions to install... 64-----> Node.js app detected 65-----> Build failed 66 ! Two different lockfiles found: package-lock.json and yarn.lock 67 Both npm and yarn have created lockfiles for this application, 68 but only one can be used to install dependencies. Installing 69 dependencies using the wrong package manager can result in missing 70 packages or subtle bugs in production. 71 - To use npm to install your application's dependencies please delete 72 the yarn.lock file. 73 $ git rm yarn.lock 74 - To use yarn to install your application's dependences please delete 75 the package-lock.json file. 76 $ git rm package-lock.json 77 78 https://kb.heroku.com/why-is-my-node-js-build-failing-because-of-conflicting-lock-files 79 ! Push rejected, failed to compile Node.js app. 80 ! Push failed
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/16 11:48 編集