diff --git a/deploy.php b/deploy.php index e2e6b20..5755ce5 100644 --- a/deploy.php +++ b/deploy.php @@ -21,24 +21,43 @@ add('writable_dirs', []); set('allow_anonymous_stats', false); // Hosts -host('165.22.47.203') +host('lite.knockout.chat') ->user('knockout') ->stage('production') ->set('deploy_path', '/srv/www/{{application}}/production'); -host('165.22.47.203') +host('staging.lite.knockout.chat') ->user('knockout') ->stage('staging') ->set('deploy_path', '/srv/www/{{application}}/staging'); // Tasks -task('build', function () { +task('build', function() { run('cd {{release_path}} && build'); }); +task('artisan:storage:link', function() { + // override +}); + +task('artisan:view:cache', function() { + // override +}); + +task('artisan:config:cache', function() { + // override +}); + +task('artisan:optimize', function() { + // override +}); + +task('artisan:migrate', function() { + // override +}); + // [Optional] if deploy fails automatically unlock. after('deploy:failed', 'deploy:unlock'); // Migrate database before symlink new release. before('deploy:symlink', 'artisan:migrate'); -