Skip to content

Commit b6710af

Browse files
committed
modify deploy playbook
1 parent f62a74e commit b6710af

File tree

1 file changed

+18
-16
lines changed
  • .circleci/ansible/roles/deploy/tasks

1 file changed

+18
-16
lines changed

.circleci/ansible/roles/deploy/tasks/main.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
11
---
2-
- name: "Creates backend app directory"
3-
file:
4-
path: ~/backend
5-
state: directory
6-
7-
- name: "Unarchive backend files"
8-
unarchive:
9-
src: artifact.tar.gz
10-
dest: ~/backend
11-
12-
- name: "Installing Node Dependencies"
13-
shell: |
14-
cd ~/backend
15-
npm i
16-
17-
182
- name: set env vars
193
become: true
204
become_user: root
@@ -31,6 +15,24 @@
3115
echo TYPEORM_MIGRATIONS=./backend/dist/migrations/*.ts >> /etc/environment
3216
echo NODE_ENV=production >> /etc/environment
3317
echo VERSION=1 >> /etc/environment
18+
19+
- name: "Creates backend app directory"
20+
file:
21+
path: ~/backend
22+
state: directory
23+
24+
- name: "Unarchive backend files"
25+
unarchive:
26+
src: artifact.tar.gz
27+
dest: ~/backend
28+
29+
- name: "Installing Node Dependencies"
30+
shell: |
31+
cd ~/backend
32+
npm i
33+
34+
35+
3436
3537
3638
- name: Start the app

0 commit comments

Comments
 (0)