Fixed deploy

This commit is contained in:
ben 2023-10-12 01:28:34 -04:00
parent cfa9be4705
commit bf8dda5a4c
2 changed files with 2 additions and 6 deletions

View File

@ -20,10 +20,6 @@ jobs:
tools: composer tools: composer
extensions: bcmath, ctype, fileinfo, json, odbc, mbstring, openssl, pdo, pdo_mysql, pdo_odbc tokenizer, xml, soap, redis, igbinary extensions: bcmath, ctype, fileinfo, json, odbc, mbstring, openssl, pdo, pdo_mysql, pdo_odbc tokenizer, xml, soap, redis, igbinary
php-version: "8.2" php-version: "8.2"
ssh-config: |
Host benhub
Port 9001
User git
- name: Install dependencies - name: Install dependencies
run: composer install --no-interaction --no-scripts --prefer-dist run: composer install --no-interaction --no-scripts --prefer-dist

View File

@ -8,7 +8,7 @@ require 'contrib/npm.php';
// Config // Config
set('git_ssh_command', 'ssh'); set('git_ssh_command', 'ssh');
set('repository', 'benhub/PriceyBot/PriceyBotPanel.git'); set('repository', 'ssh://git@ssh.git.lovelynet.net:9001/PriceyBot/PriceyBotPanel.git');
add('shared_files', []); add('shared_files', []);
add('shared_dirs', []); add('shared_dirs', []);
@ -33,10 +33,10 @@ task('npm:build', function () {
'staging' => 'development', 'staging' => 'development',
default => 'production' default => 'production'
}; };
run("cd {{release_path}} && {{bin/npm}} run {$command}"); run("cd {{release_path}} && {{bin/npm}} run {$command}");
}); });
// Hooks // Hooks
after('deploy:vendors', 'npm:install'); after('deploy:vendors', 'npm:install');
after('npm:install', 'npm:build'); after('npm:install', 'npm:build');