You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using v1.0.5 with Symfony 3.4.11 and CustomDeployer
When I run bin/console deploy I've got error:
The "symfonyEnvironment" option is not defined.
It is raised by ConfigurationAdapter
And I can't set it while configure deployer (like in DefaultDeployer), because there is no method in CustomConfiguration
public function configure()
{
return $this->getConfigBuilder()
->server('self')
->symfonyEnvironment('prod_ru')
;
}
Call to undefined method EasyCorp\Bundle\EasyDeployBundle\Configuration\CustomConfiguration::symfonyEnvironment()
Here is my code:
use EasyCorp\Bundle\EasyDeployBundle\Deployer\CustomDeployer;
return new class extends CustomDeployer
{
public function configure()
{
return $this->getConfigBuilder()
->server('self')
;
}
public function deploy()
{
// ...
}
public function cancelDeploy()
{
}
public function rollback()
{
}
};
Is it a bug or I just don't understand how to set symfonyEnvironment in right way?
The text was updated successfully, but these errors were encountered:
With a little research i found a temporary solution :
use EasyCorp\Bundle\EasyDeployBundle\Configuration\DefaultConfiguration;
return new class extends CustomDeployer
{
public function configure()
{
return (new DefaultConfiguration($this->getContext()->getLocalProjectRootDir()))
->server('your_server')
->symfonyEnvironment('prod')
;
}
...
}
I'm using v1.0.5 with Symfony 3.4.11 and CustomDeployer
When I run bin/console deploy I've got error:
It is raised by ConfigurationAdapter
And I can't set it while configure deployer (like in DefaultDeployer), because there is no method in CustomConfiguration
Here is my code:
Is it a bug or I just don't understand how to set symfonyEnvironment in right way?
The text was updated successfully, but these errors were encountered: