An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: Haproxy errors
Andras Bacsaif6a91cb53c4d
diff --git a/package.json b/package.jsonindex 463479001b..6c72371981 100644--- a/package.json+++ b/package.json@@ -1,7 +1,7 @@{"name": "coolify","description": "An open-source & self-hostable Heroku / Netlify alternative.",- "version": "2.2.6",+ "version": "2.2.7","license": "AGPL-3.0","scripts": {"dev": "docker-compose -f docker-compose-dev.yaml up -d && NODE_ENV=development svelte-kit dev",diff --git a/src/lib/haproxy/configuration.ts b/src/lib/haproxy/configuration.tsindex 70e6502fc1..120e2d4cd8 100644--- a/src/lib/haproxy/configuration.ts+++ b/src/lib/haproxy/configuration.ts@@ -138,12 +138,7 @@ export async function haproxyInstance() {export async function configureHAProxy() {const haproxy = await haproxyInstance();-- try {- await checkHAProxy(haproxy);- } catch (error) {- return 'Error: HAProxy is not running';- }+ await checkHAProxy(haproxy);try {const data = {diff --git a/src/lib/haproxy/index.ts b/src/lib/haproxy/index.tsindex 39190384d3..c1d65f10c3 100644--- a/src/lib/haproxy/index.ts+++ b/src/lib/haproxy/index.ts@@ -49,11 +49,7 @@ export async function completeTransaction(transactionId) {}export async function deleteProxy({ id }) {const haproxy = await haproxyInstance();- try {- await checkHAProxy(haproxy);- } catch (error) {- return 'Error: HAProxy is not running';- }+ await checkHAProxy(haproxy);let transactionId;try {diff --git a/src/lib/queues/proxy.ts b/src/lib/queues/proxy.tsindex a29b2a2235..339e60d606 100644--- a/src/lib/queues/proxy.ts+++ b/src/lib/queues/proxy.ts@@ -5,7 +5,6 @@ export default async function () {try {return await configureHAProxy();} catch (error) {- console.log(error.response?.body || error);return ErrorHandler(error.response?.body || error);}}