diff --git a/.github/workflows/codesphere-deploy.yml b/.github/workflows/codesphere-deploy.yml index daffbdf..7329e8e 100644 --- a/.github/workflows/codesphere-deploy.yml +++ b/.github/workflows/codesphere-deploy.yml @@ -21,17 +21,17 @@ 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: docker://ghcr.io/codesphere-cloud/codesphere-monorepo/integrations/github-action:gordey-previe-7eceec14-1d1376e203 env: 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: | NODE_ENV=development DEBUG=true - apiUrl: https://codesphere.com/ - tlsAllowUnauthorized: "true" + apiUrl: https://cloud.codesphere.com/ + restricted: true 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/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/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}`); }); 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" 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);