From e5a26400483c2c821cb84e03316fbf5f915c6aec Mon Sep 17 00:00:00 2001 From: Wildan M Date: Wed, 14 Feb 2024 23:16:00 +0700 Subject: [PATCH] Bump bunfix to support websocket --- package-lock.json | 4 ++-- package.json | 2 +- src/executor/runner.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9b57907..6792357 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "domcloud-bridge", - "version": "0.41.2", + "version": "0.41.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "domcloud-bridge", - "version": "0.41.2", + "version": "0.41.3", "license": "MIT", "dependencies": { "axios": "^1.6.5", diff --git a/package.json b/package.json index b85cbb6..7d1370e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "domcloud-bridge", - "version": "0.41.2", + "version": "0.41.3", "description": "Deployment runner for DOM Cloud", "main": "app.js", "engines": { diff --git a/src/executor/runner.js b/src/executor/runner.js index 9133678..e8fd976 100644 --- a/src/executor/runner.js +++ b/src/executor/runner.js @@ -495,7 +495,7 @@ export default async function runConfig(config, domain, writer, sandbox = false) await writeLog("$> Changing Bun engine to " + (value || 'latest')); await sshExec("command -v pathman &> /dev/null || (curl -sS https://webinstall.dev/pathman | bash) ; source ~/.bashrc"); await sshExec(`curl -sS https://webinstall.dev/bun${arg} | bash ; source ~/.config/envman/PATH.env`); - await sshExec(`wget https://github.com/domcloud/proxy-fix/releases/download/v0.0.5/proxyfix-linux-amd64 -O ~/.local/bin/bunfix && chmod +x ~/.local/bin/bunfix || true`); + await sshExec(`(cd ~/.local/bin/; wget -qO- https://github.com/domcloud/proxy-fix/releases/download/v0.1.2/proxy-fix-linux-amd64.tar.gz | tar xz && mv proxy-fix-linux-amd64 bunfix)`); await sshExec("bun --version"); } break;