我已将我的网站部署到DigitalOcean Droplet。现在我在本地进行了一些更改,推送到我的Bitbucket仓库,当我登录Forge并点击Deploy时,我收到以下消息:
From bitbucket.org:myUsername/myBucket
* branch master -> FETCH_HEAD
error: Your local changes to the following files would be overwritten by merge:
app/Http/Controllers/MyController.php
Please, commit your changes or stash them before you can merge.
Aborting
所以如果我做对了,他就不会在我的Droplet上更新MyController
,因为它会被覆盖?这不是部署点吗?
显然我在这里弄错了所以任何帮助都会受到赞赏。
这是我的部署脚本:
cd /home/forge/mysite.com
git pull origin master
composer install --no-interaction --no-dev --prefer-dist
php artisan migrate --force --seed
php artisan migrate --path=vendor/mpociot/versionable/src/migrations