Skip to content

Commit

Permalink
[FEAT] ci, cd yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
leGit-y committed Nov 15, 2023
1 parent b31f108 commit 5e7ef32
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-20.04
environment: production

strategy:
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/cd_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: CD

on:
push:
branches: [develop]
branches: [develop/main]

jobs:
build-and-deploy:
runs-on: ubuntu-20.04
environment: development

strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
build-and-test:
runs-on: ubuntu-20.04
environment: production

strategy:
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ name: CI

on:
pull_request:
branches: [develop]
branches: [develop/main]

jobs:
build-and-test:
runs-on: ubuntu-20.04
environment: development

strategy:
matrix:
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import App from './app';

const app = new App().setup();


console.log(process.env.NODE_ENV)
console.log(process.env.DATABASE_URL)

const port = 3000; // 사용할 port를 3000번으로 설정
app.listen(port || 3000, () => {
Expand Down

0 comments on commit 5e7ef32

Please sign in to comment.