Skip to content

Commit bc14ccf

Browse files
MohanMohan
authored andcommitted
yml env issue
1 parent 65e09bf commit bc14ccf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242

4343
- name: Run the Container
4444

45-
run: docker run -d -p 8080:8080 --name curve-server-container -e JWT_SECRET=${{ secrets.JWT_SECRET }} -e PORT=8080 -e MONGODB_URI=${{ secrets.MONGODB_URI }} -e ENV='production' -e GOOGLE_APP_PASSWORD=${{ secrets.GOOGLE_APP_PASSWORD }} mohnb33/curve-server:latest
45+
run: docker run -d -p 8080:8080 --name curve-server-container -e JWT_SECRET=${{ secrets.JWT_SECRET }} -e MONGODB_URI=${{ secrets.MONGODB_URI }} -e ENV='production' -e GOOGLE_APP_PASSWORD=${{ secrets.GOOGLE_APP_PASSWORD }} mohnb33/curve-server:latest

server/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const testCode = `print(\"Hello\")`;
4141
}
4242
})()
4343

44-
app.listen(process.env.PORT, '0.0.0.0', () => {
44+
app.listen(process.env.PORT || 8080, '0.0.0.0', () => {
4545
connectDB()
4646
console.log(`Server is Running at 0.0.0.0:${process.env.PORT}`)
4747
})

0 commit comments

Comments
 (0)