我正在使用Laravel與Forge和Digital Ocean。Laravel Forge提交問題 - 作曲者更改
當我做出更改並部署所有工作正常後,直到我用Composer添加一個新軟件包時,出現以下錯誤,並且在此之後它不會部署?
Wed Jun 15 12:03:12 BST 2016
Warning: Permanently added the RSA host key for IP address '192.30.252.120' to the list of known hosts.
From github.com:********/****
* branch master -> FETCH_HEAD
08f475b..5802179 master -> origin/master
error: Your local changes to the following files would be overwritten by merge:
vendor/composer/autoload_classmap.php
vendor/composer/autoload_namespaces.php
vendor/composer/installed.json
Please, commit your changes or stash them before you can merge.
Aborting
Updating e20816a..5802179
我可以修復的唯一方法是刪除服務器並重新啓動。我正在使用sourcetree將更改推送到Git。
從你的git倉庫中刪除'/ vendor'目錄,並且作爲你部署過程的一部分運行'composer install' – Wader