Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/codesphere-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
3 changes: 2 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions frontend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion frontend/views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down