File tree 3 files changed +42
-4
lines changed
3 files changed +42
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Deployment
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - " server/**"
9
+
10
+ jobs :
11
+ deployment :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ # public 서버로 ssh 접속
15
+ - name : ssh connection
16
+
17
+ with :
18
+ host : ${{ secrets.HOST }}
19
+ username : ${{ secrets.USERNAME }}
20
+ key : ${{ secrets.SSH_KEY }}
21
+ port : ${{ secrets.PORT }}
22
+ script : |
23
+ cd /root/web05-Denamu
24
+ git pull origin main
25
+ cd server/
26
+ npm install
27
+ npm build
28
+ pm2 start ecosystem.config.js
29
+
30
+ # TODO : 환경변수 추가
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ apps : [
3
+ {
4
+ name : 'Denamu' ,
5
+ script : './dist/main.js' ,
6
+ instances : 'max' ,
7
+ exec_mode : 'cluster' ,
8
+ } ,
9
+ ] ,
10
+ } ;
Original file line number Diff line number Diff line change 1
1
import { Module } from '@nestjs/common' ;
2
- import { AppController } from './app.controller' ;
3
- import { AppService } from './app.service' ;
4
2
5
3
@Module ( {
6
4
imports : [ ] ,
7
- controllers : [ AppController ] ,
8
- providers : [ AppService ] ,
5
+ controllers : [ ] ,
6
+ providers : [ ] ,
9
7
} )
10
8
export class AppModule { }
You can’t perform that action at this time.
0 commit comments