From ffa4f46e1c1e7d42db2c511d63fe807b23d61126 Mon Sep 17 00:00:00 2001 From: "Harry (hjbdev)" Date: Sun, 30 Mar 2025 14:47:13 +0000 Subject: [PATCH] removed gh actions, readme wip, logging --- .github/workflows/lint.yml | 45 ----------------------- .github/workflows/tests.yml | 53 ---------------------------- app/Jobs/Servers/ProvisionServer.php | 2 ++ readme.md | 6 +++- 4 files changed, 7 insertions(+), 99 deletions(-) delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index fdb4d4d..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: linter - -on: - push: - branches: - - develop - - main - pull_request: - branches: - - develop - - main - -permissions: - contents: write - -jobs: - quality: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.4' - - - name: Install Dependencies - run: | - composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - npm install - - - name: Run Pint - run: vendor/bin/pint - - - name: Format Frontend - run: npm run format - - # - name: Lint Frontend - # run: npm run lint - - # - name: Commit Changes - # uses: stefanzweifel/git-auto-commit-action@v5 - # with: - # commit_message: fix code style - # commit_options: '--no-verify' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 132dd3c..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: tests - -on: - push: - branches: - - develop - - main - pull_request: - branches: - - develop - - main - -jobs: - ci: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.4 - tools: composer:v2 - coverage: xdebug - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'npm' - - - name: Install Node Dependencies - run: npm ci - - - name: Install Dependencies - run: composer install --no-interaction --prefer-dist --optimize-autoloader - - - name: Copy Environment File - run: cp .env.example .env - - - name: Generate Application Key - run: php artisan key:generate - - - name: Publish Ziggy Configuration - run: php artisan ziggy:generate - - - name: Build Assets - run: npm run build - - - name: Tests - run: ./vendor/bin/pest diff --git a/app/Jobs/Servers/ProvisionServer.php b/app/Jobs/Servers/ProvisionServer.php index 97a0751..6290c98 100644 --- a/app/Jobs/Servers/ProvisionServer.php +++ b/app/Jobs/Servers/ProvisionServer.php @@ -36,6 +36,8 @@ class ProvisionServer implements ShouldQueue, ShouldBeEncrypted // Download the provision script and execute it // The script will run in the background $ssh->execute("cd ~ && wget --quiet --output-document=provision.sh \"{$provisionScriptUrl}\" && chmod +x provision.sh && ./provision.sh &"); + logger('executing script on server'); + logger("cd ~ && wget --quiet --output-document=provision.sh \"{$provisionScriptUrl}\" && chmod +x provision.sh && ./provision.sh &"); $this->server->update([ 'status' => ServerStatus::PROVISIONING, diff --git a/readme.md b/readme.md index c351d28..a6ba465 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,7 @@ -# STUFF +# Keystone + +Keystone is an opinionated Laravel deployment tool. Think of it as a middle-ground between Forge and Cloud, with Envoyer built in. + +## STUFF MAKE SURE TO INSTALL sshpass on the server this is running on \ No newline at end of file