Initial Commit
tests / ci (push) Canceled after 0s

This commit is contained in:
Mark Gregory
2026-10-15 16:20:20 +01:00
parent ebb20d56ea
commit bf705a3803
32 changed files with 125 additions and 32 deletions
+6 -10
View File
@@ -9,7 +9,7 @@ set('writable_use_sudo', true);
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/cresta31.git');
set('node_version', '22.12.0');
set('allow_anonymous_stats', false);
@@ -18,16 +18,12 @@ add('shared_dirs', ['storage']);
add('writable_dirs', ['storage', 'bootstrap/cache']);
// Host Definitions
host('main')
->set('hostname', 'thredary.com')
host('prod')
->set('hostname', 'cresta31.absdev.net')
->set('remote_user', 'mag')
->set('branch', 'main')
->set('deploy_path', '/var/www/thredary');
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/cresta31');
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');
@@ -52,7 +48,7 @@ task('artisan:clear', function (): void {
task('services:restart', function (): void {
run('sudo -n nginx -t');
run('sudo -n systemctl reload nginx');
run('sudo -n systemctl restart php8.3-fpm');
run('sudo -n systemctl restart php8.5-fpm');
});
after('deploy:update_code', 'deploy:write_revision_file');