소스 검색

:gear: force removal of package-lock in post-receive hook

tags/0.0.1
J 4 년 전
부모
커밋
b0da93ae11
1개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. 11
    11
      deployment/post-receive

+ 11
- 11
deployment/post-receive 파일 보기

1
 #!/bin/bash
1
 #!/bin/bash
2
 
2
 
3
+REPO="/opt/staging/siimee.git"
4
+commands=(
5
+    "cd ${REPO}"
6
+    "git --git-dir=${REPO} --work-tree=${REPO} checkout master -f"
7
+    "cd ${REPO}/backend && rm -f ${REPO}/backend/package-lock.json && npm install"
8
+    "echo no build needed!"
9
+    "cd ${REPO}/frontend && rm -f ${REPO}/frontend/package-lock.json && npm install"
10
+    "npm run build"
11
+    "cd ${REPO}/backend && npm run generate && npm run reseed"
12
+)
13
+
3
 steps=(
14
 steps=(
4
     "navigate to project…"
15
     "navigate to project…"
5
     "git checkout…"
16
     "git checkout…"
9
     "building frontend…"
20
     "building frontend…"
10
     "regenerate db data…"
21
     "regenerate db data…"
11
 )
22
 )
12
-commands=(
13
-    "cd /opt/staging/siimee.git"
14
-    "git --git-dir=/opt/staging/siimee.git --work-tree=/opt/staging/siimee.git checkout master -f"
15
-    "cd /opt/staging/siimee.git/backend && npm install"
16
-    "npm run build"
17
-    "cd /opt/staging/siimee.git/frontend && npm install"
18
-    "npm run build"
19
-    "cd /opt/staging/siimee.git/backend && npm run generate && npm run reseed"
20
-)
21
-
22
-
23
 SPAN=92
23
 SPAN=92
24
 COUNT=0
24
 COUNT=0
25
 hr() {
25
 hr() {

Loading…
취소
저장