Browse Source

Update deployment config

staging
parent
commit
d0139dea7e
1 changed files with 23 additions and 4 deletions
  1. +23
    -4
      deploy.php

+ 23
- 4
deploy.php View File

@@ -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');


Loading…
Cancel
Save