Composer php 使用bitbucket repo和composer deployer进行部署时是否遗漏了什么?
我正在尝试将我的WordPress站点从本地部署到临时站点。我可以将文件部署到我的托管站点,但现在当我尝试访问我的站点时,我在Chrome中遇到了一个错误 将我的站点上载到我的web服务器后,siteground处于public_html/staging状态,并已将我的子域根位置更改为public_html/staging/current/web。在那之后,我得到了这个错误Composer php 使用bitbucket repo和composer deployer进行部署时是否遗漏了什么?,composer-php,bitbucket,php-deployer,Composer Php,Bitbucket,Php Deployer,我正在尝试将我的WordPress站点从本地部署到临时站点。我可以将文件部署到我的托管站点,但现在当我尝试访问我的站点时,我在Chrome中遇到了一个错误 将我的站点上载到我的web服务器后,siteground处于public_html/staging状态,并已将我的子域根位置更改为public_html/staging/current/web。在那之后,我得到了这个错误 Warning: require_once(/home/user/public_html/staging/release
Warning:
require_once(/home/user/public_html/staging/releases/1/vendor/autoload.php):
failed to open stream: No such file or directory in
/home/user/public_html/staging/releases/1/web/wp-config.php on line 7
Fatal error: require_once(): Failed opening required
'/home/user/public_html/staging/releases/1/vendor/autoload.php'
(include_path='.:/usr/local/php71/pear') in
/home/user/public_html/staging/releases/1/web/wp-config.php on line 7
我已将我的用户名替换为用户
我不知道我遗漏了什么。您需要在共享文件夹中创建web/wp-config.php文件,其中包含数据库凭据和所有WordPress配置 与Web服务器/部署用户一起转到:
mkdir /home/user/public_html/staging/shared/web
vim /home/user/public_html/staging/shared/web/wp-config.php
然后将配置包含在该文件中。之后,尝试重新运行部署。我不确定wp-config.php文件是否在根文件夹中,以便在运行命令时尝试删除web/folder