- 最新
- 最多得票
- 最多評論
For future reference, I figured this out as follows.
I had been getting "No composer.json file detected" in my logs.
I discovered that because of the way I was zipping my package on macOS (using the native right click > Compress), it puts the files in a sub-folder inside the zipped package. So the composer.json was not at the "root" level of my package. I added it to the "root" level, and then once deployed I got the following in the logs:
Found composer.json file. Attempting to install vendors. (...)
And then the path to "vendor/autoload.php" was not in the directory with my application either (NOT /var/app/current/application-files/web/vendor), but closer to the root level (e.g. /var/app/current/vendor)
Hopefully this saves someone else some headaches!
相關內容
- 已提問 6 個月前
- 已提問 21 小時前
- AWS 官方已更新 1 年前
- AWS 官方已更新 9 個月前