我正在尝试使用easy-deploy-bundle来部署symfony项目,无法部署任何symfony项目,甚至是我的本地机器。来自共享目录的parameters.yml文件的符号链接始终失败,并显示以下错误。
我克隆了symfony-demo项目,这是一个symfony 3.3.10,parameters.yml文件是空的但存在于shared / app / config目录中。
错误:
[Symfony\Component\Process\Exception\ProcessFailedException]
The command "(export SYMFONY_ENV=prod; cd /home/patrick/code/testedb-deploy/releases/20171015162057 && ln -nfs /home/patrick/code/testedb-deploy/shared/app/config/parameters.yml /home/patrick/code/testedb-deploy/releases/20171015162057/app/config/parameters.yml)" f
ailed.
Exit Code: 1(General error)
Working directory: /home/patrick/code/testedb
Output:
================
Error Output:
================
ln: failed to create symbolic link '/home/patrick/code/testedb-deploy/releases/20171015162057/app/config/parameters.yml': No such file or directory
这是我的部署文件:
<?php
use EasyCorp\Bundle\EasyDeployBundle\Deployer\DefaultDeployer;
return new class extends DefaultDeployer
{
public function configure()
{
return $this->getConfigBuilder()
->server('localhost')
->deployDir('/home/patrick/code/testedb-deploy')
->repositoryUrl('git@github.com:superpatty/symfony-demo.git')
->symfonyEnvironment('prod')
->resetOpCacheFor('https://demo.symfony.com')
;
}
public function beforeStartingDeploy()
{
$this->log('Checking that the repository is in a clean state.');
$this->log('Running tests, linters and checkers.');
$this->runLocal('./bin/console security:check --env=dev');
$this->runLocal('./bin/console lint:twig app/Resources/ --no-debug');
$this->runLocal('./bin/console lint:yaml app/ --no-debug');
$this->runLocal('./bin/console lint:xliff app/Resources/ --no-debug');
$this->runLocal('./vendor/bin/simple-phpunit');
}
public function beforeFinishingDeploy()
{
}
};
有没有其他人遇到过这个问题以及如何解决这个问题?