diff --git a/deploy.php b/deploy.php index a63f706..51425b2 100755 --- a/deploy.php +++ b/deploy.php @@ -6,10 +6,11 @@ require 'recipe/laravel.php'; // System Config set('writable_use_sudo', true); +set('update_code_strategy', 'clone'); set('clear_use_sudo', true); set('cleanup_use_sudo', true); set('keep_releases', 1); -set('repository', 'git@absdev.github.com:magabsdev/thredary.git'); +set('repository', 'git@git.absdev.net:mag/Testbed.git'); set('node_version', '22.12.0'); set('allow_anonymous_stats', false); @@ -22,12 +23,12 @@ host('main') ->set('hostname', 'thredary.com') ->set('remote_user', 'mag') ->set('branch', 'main') - ->set('deploy_path', '/var/www/thredary'); + ->set('deploy_path', '/var/www/testbed'); host('develop') ->set('hostname', 'thredary.com') ->set('remote_user', 'mag') ->set('branch', 'develop') - ->set('deploy_path', '/var/www/thredary_dev'); + ->set('deploy_path', '/var/www/testbed'); task('build', function (): void { run('export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && nvm use {{node_version}} && cd {{release_path}} && npm ci --no-audit --no-fund');