4 Commits
123 changed files with 18 additions and 4 deletions
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
Regular → Executable
View File
Regular → Executable
View File
View File
Regular → Executable
View File
View File
Regular → Executable
View File
Regular → Executable
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Generated Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
BIN
View File
Binary file not shown.
View File
View File
View File
Regular → Executable
+18 -4
View File
@@ -18,8 +18,8 @@ add('shared_dirs', ['storage']);
add('writable_dirs', ['storage', 'bootstrap/cache']); add('writable_dirs', ['storage', 'bootstrap/cache']);
// Host Definitions // Host Definitions
host('main') host('prod')
->set('hostname', '217.154.47.197') ->set('hostname', 'rsyncs.absdev.net')
->set('remote_user', 'mag') ->set('remote_user', 'mag')
->set('branch', 'main') ->set('branch', 'main')
->set('deploy_path', '/var/www/rsyncstudio'); ->set('deploy_path', '/var/www/rsyncstudio');
@@ -28,7 +28,7 @@ host('stage')
->set('hostname', 'pegasus.absdev.net') ->set('hostname', 'pegasus.absdev.net')
->set('remote_user', 'mag') ->set('remote_user', 'mag')
->set('branch', 'stage') ->set('branch', 'stage')
->set('deploy_path', '/var/www/rsyncstudio'); ->set('deploy_path', '/var/www/rsyncstudio_dev');
task('build', function (): void { 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'); 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');
@@ -50,7 +50,21 @@ task('artisan:clear', function (): void {
task('services:restart', function (): void { task('services:restart', function (): void {
run('sudo -n nginx -t'); run('sudo -n nginx -t');
run('sudo -n systemctl reload nginx'); run('sudo -n systemctl reload nginx');
run('sudo -n systemctl restart php8.3-fpm'); $phpFpm = run(<<<'BASH'
if systemctl list-unit-files php8.5-fpm.service --no-legend | grep -q '^php8.5-fpm.service'; then
echo php8.5-fpm
elif systemctl list-unit-files php8.3-fpm.service --no-legend | grep -q '^php8.3-fpm.service'; then
echo php8.3-fpm
else
exit 1
fi
BASH);
$phpFpm = trim($phpFpm);
if ($phpFpm === '') {
throw new \RuntimeException('No supported PHP-FPM service found (8.5 or 8.3).');
}
writeln("Restarting {$phpFpm}...");
run("sudo -n systemctl restart {$phpFpm}");
}); });
after('deploy:update_code', 'deploy:write_revision_file'); after('deploy:update_code', 'deploy:write_revision_file');
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Generated Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Regular → Executable
View File

Before

Width:  |  Height:  |  Size: 669 B

After

Width:  |  Height:  |  Size: 669 B

Regular → Executable
View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Regular → Executable
View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Regular → Executable
View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Regular → Executable
View File

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File

Some files were not shown because too many files have changed in this diff Show More