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
extensions: bcmath, ctype, fileinfo, json, odbc, mbstring, openssl, pdo, pdo_mysql, pdo_odbc tokenizer, xml, soap, redis, igbinary
php-version: "8.2"
ssh-config: |
Host benhub
Port 9001
User git
- name: Install dependencies
run: composer install --no-interaction --no-scripts --prefer-dist

View File

@ -8,7 +8,7 @@ require 'contrib/npm.php';
// Config
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_dirs', []);
@ -33,10 +33,10 @@ task('npm:build', function () {
'staging' => 'development',
default => 'production'
};
run("cd {{release_path}} && {{bin/npm}} run {$command}");
});
// Hooks
after('deploy:vendors', 'npm:install');
after('npm:install', 'npm:build');