mdbpanel/deploy.php

41 lines
867 B
PHP

<?php
namespace Deployer;
require 'recipe/laravel.php';
// Project name
set('application', 'domains/panel.mydentalbackup.co.uk/public_html');
// Project repository
set('repository', 'git@git.nabble.co.uk:mshillam/mdbpanel.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', []);
set('allow_anonymous_stats', false);
// Hosts
host('192.168.20.2')
->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', 'artisan:migrate');