From bf8dda5a4ccb7873ee0d77609e37c5d17191804b Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 12 Oct 2023 01:28:34 -0400 Subject: [PATCH] Fixed deploy --- .github/workflows/deploy.yml | 4 ---- deploy.php | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a263335..5a8b2ec 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/deploy.php b/deploy.php index bca695a..6a09e1e 100644 --- a/deploy.php +++ b/deploy.php @@ -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');