This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pflaenz.li-Symfony/deploy.php
2021-05-07 15:27:49 +02:00

40 lines
811 B
PHP

<?php
namespace Deployer;
require 'recipe/symfony.php';
// Project name
set('application', 'plant-exchange');
// Project repository
set('repository', 'ssh://git@git.thisfro.ch:222/thisfro/plant-exchange.git');
// [Optional] Allocate tty for git clone. Default value is false.
set('git_tty', true);
// Shared files/dirs between deploys
add('shared_files', []);
add('shared_dirs', []);
// Writable dirs by web server
add('writable_dirs', []);
// Hosts
host('pflaenz.li')
->set('deploy_path', '~/{{application}}');
// Tasks
task('build', function () {
run('cd {{release_path}} && build');
});
// [Optional] if deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');
// Migrate database before symlink new release.
before('deploy:symlink', 'database:migrate');