From ecd5dc60f6d483c0e450336fbdb8228da2a3fb39 Mon Sep 17 00:00:00 2001 From: Gordey Doronin Date: Mon, 2 Feb 2026 16:34:47 +0100 Subject: [PATCH 1/8] Use latest codesphere-cloud/gh-action-deploy --- .github/workflows/codesphere-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codesphere-deploy.yml b/.github/workflows/codesphere-deploy.yml index daffbdf..efd5158 100644 --- a/.github/workflows/codesphere-deploy.yml +++ b/.github/workflows/codesphere-deploy.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy to Codesphere - uses: docker://ghcr.io/codesphere-cloud/codesphere-monorepo/integrations/github-action:gh-action-ws-url-5dd1ca4b0e + uses: codesphere-cloud/gh-action-deploy@main env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: From 7f0293a7425a43c1fa069626aba0eea174334dd8 Mon Sep 17 00:00:00 2001 From: Gordey Doronin Date: Mon, 2 Feb 2026 17:39:02 +0100 Subject: [PATCH 2/8] Change apiUrl to another installation --- .github/workflows/codesphere-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codesphere-deploy.yml b/.github/workflows/codesphere-deploy.yml index efd5158..ecd62b6 100644 --- a/.github/workflows/codesphere-deploy.yml +++ b/.github/workflows/codesphere-deploy.yml @@ -33,5 +33,5 @@ jobs: env: | NODE_ENV=development DEBUG=true - apiUrl: https://codesphere.com/ + apiUrl: https://cloud.codesphere.com/ tlsAllowUnauthorized: "true" From 81443137399b0cec381e52d11ec64b55c1f17be6 Mon Sep 17 00:00:00 2001 From: Gordey Doronin Date: Mon, 2 Feb 2026 17:39:45 +0100 Subject: [PATCH 3/8] Change secrets for custom installation --- .github/workflows/codesphere-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codesphere-deploy.yml b/.github/workflows/codesphere-deploy.yml index ecd62b6..ea52e5c 100644 --- a/.github/workflows/codesphere-deploy.yml +++ b/.github/workflows/codesphere-deploy.yml @@ -26,8 +26,8 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: email: ${{ secrets.CODESPHERE_EMAIL }} - password: ${{ secrets.CODESPHERE_PASSWORD }} - team: ${{ secrets.CODESPHERE_TEAM }} + password: ${{ secrets.CLOUD_CODESPHERE_PASSWORD }} + team: ${{ secrets.CLOUD_CODESPHERE_TEAM }} plan: Micro onDemand: true env: | From 1f0dc0fb3998c0174696d5f658a2415646c891c5 Mon Sep 17 00:00:00 2001 From: Gordey Doronin Date: Wed, 4 Feb 2026 14:42:28 +0100 Subject: [PATCH 4/8] Restricted preview (#2) --- .github/workflows/codesphere-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codesphere-deploy.yml b/.github/workflows/codesphere-deploy.yml index ea52e5c..63f69da 100644 --- a/.github/workflows/codesphere-deploy.yml +++ b/.github/workflows/codesphere-deploy.yml @@ -35,3 +35,4 @@ jobs: DEBUG=true apiUrl: https://cloud.codesphere.com/ tlsAllowUnauthorized: "true" + restricted: true From 6ab624535a5432a84c7c9f460df03ca09de4daca Mon Sep 17 00:00:00 2001 From: Gordey Doronin Date: Wed, 4 Feb 2026 14:44:03 +0100 Subject: [PATCH 5/8] Don't use tlsAllowUnauthorized --- .github/workflows/codesphere-deploy.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/codesphere-deploy.yml b/.github/workflows/codesphere-deploy.yml index 63f69da..50a8a9b 100644 --- a/.github/workflows/codesphere-deploy.yml +++ b/.github/workflows/codesphere-deploy.yml @@ -34,5 +34,4 @@ jobs: NODE_ENV=development DEBUG=true apiUrl: https://cloud.codesphere.com/ - tlsAllowUnauthorized: "true" restricted: true From 32f6162f64b4af9982d138eb7bff1fa124702c35 Mon Sep 17 00:00:00 2001 From: Gordey Doronin Date: Wed, 4 Feb 2026 14:45:23 +0100 Subject: [PATCH 6/8] Log env --- backend/index.js | 1 + frontend/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/index.js b/backend/index.js index bd0f40e..b7668ab 100644 --- a/backend/index.js +++ b/backend/index.js @@ -119,5 +119,6 @@ app.get('/urls', (req, res) => { }); app.listen(PORT, () => { + console.log(`Backend Env: ${process.env.NODE_ENV}`); console.log(`Backend server running on http://localhost:${PORT}`); }); diff --git a/frontend/index.js b/frontend/index.js index 16a3229..8e3c10f 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -27,5 +27,6 @@ app.get('/:shortId', (req, res) => { }); app.listen(PORT, () => { + console.log(`Frontend Env: ${process.env.NODE_ENV}`); console.log(`Frontend server running on http://localhost:${PORT}`); }); From c5790a21aa0826d4263c56109cad268a1560ddb5 Mon Sep 17 00:00:00 2001 From: Gordey Doronin Date: Wed, 4 Feb 2026 14:45:35 +0100 Subject: [PATCH 7/8] Empty lint jobs --- backend/package.json | 3 ++- frontend/package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index c10a616..644ba29 100644 --- a/backend/package.json +++ b/backend/package.json @@ -6,7 +6,8 @@ "scripts": { "start": "node index.js", "dev": "nodemon index.js", - "test": "node test.js" + "test": "node test.js", + "lint": "" }, "dependencies": { "express": "^4.18.2", diff --git a/frontend/package.json b/frontend/package.json index 73388f6..bdb0264 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,7 +6,8 @@ "scripts": { "start": "node index.js", "dev": "nodemon index.js", - "test": "node test.js" + "test": "node test.js", + "lint": "" }, "dependencies": { "express": "^4.18.2" From fd3f6ab9c1097df3179e67d7a6a31dac09c1fbb7 Mon Sep 17 00:00:00 2001 From: Gordey Doronin Date: Wed, 4 Feb 2026 14:48:33 +0100 Subject: [PATCH 8/8] Coral color --- .github/workflows/codesphere-deploy.yml | 2 +- frontend/public/index.html | 2 +- frontend/views/index.ejs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codesphere-deploy.yml b/.github/workflows/codesphere-deploy.yml index 50a8a9b..7329e8e 100644 --- a/.github/workflows/codesphere-deploy.yml +++ b/.github/workflows/codesphere-deploy.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy to Codesphere - uses: codesphere-cloud/gh-action-deploy@main + uses: docker://ghcr.io/codesphere-cloud/codesphere-monorepo/integrations/github-action:gordey-previe-7eceec14-1d1376e203 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: diff --git a/frontend/public/index.html b/frontend/public/index.html index 6b77e3d..c9e18de 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -13,7 +13,7 @@ background-color: #f5f5f5; } .container { - background-color: white; + background-color: coral; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); diff --git a/frontend/views/index.ejs b/frontend/views/index.ejs index f1ebebd..177c5c2 100644 --- a/frontend/views/index.ejs +++ b/frontend/views/index.ejs @@ -13,7 +13,7 @@ background-color: #f5f5f5; } .container { - background-color: white; + background-color: green; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);