Spaces:
Paused
Paused
github-actions[bot]
commited on
Commit
·
406bc5a
1
Parent(s):
57e6cdf
Update from GitHub Actions
Browse files- playbook.yml +3 -2
playbook.yml
CHANGED
|
@@ -38,7 +38,7 @@
|
|
| 38 |
|
| 39 |
- name: 解压文件
|
| 40 |
shell: |
|
| 41 |
-
rm -rf {{ deploy_path }}
|
| 42 |
mkdir -p {{ deploy_path }}
|
| 43 |
tar -zxvf /root/deploy/{{ app_name }}.tar.gz -C {{ deploy_path }}
|
| 44 |
args:
|
|
@@ -51,7 +51,8 @@
|
|
| 51 |
echo '#!/bin/bash
|
| 52 |
cd {{ deploy_path }}
|
| 53 |
test -f $HOME/.nvm/nvm.sh && source $HOME/.nvm/nvm.sh
|
| 54 |
-
|
|
|
|
| 55 |
' > {{ deploy_path }}/start.sh
|
| 56 |
chmod +x {{ deploy_path }}/start.sh
|
| 57 |
nohup {{ deploy_path }}/start.sh > {{ deploy_path }}/nohup.log 2>&1 &
|
|
|
|
| 38 |
|
| 39 |
- name: 解压文件
|
| 40 |
shell: |
|
| 41 |
+
rm -rf {{ deploy_path }}
|
| 42 |
mkdir -p {{ deploy_path }}
|
| 43 |
tar -zxvf /root/deploy/{{ app_name }}.tar.gz -C {{ deploy_path }}
|
| 44 |
args:
|
|
|
|
| 51 |
echo '#!/bin/bash
|
| 52 |
cd {{ deploy_path }}
|
| 53 |
test -f $HOME/.nvm/nvm.sh && source $HOME/.nvm/nvm.sh
|
| 54 |
+
npm install
|
| 55 |
+
PORT={{ app_port }} npm run start
|
| 56 |
' > {{ deploy_path }}/start.sh
|
| 57 |
chmod +x {{ deploy_path }}/start.sh
|
| 58 |
nohup {{ deploy_path }}/start.sh > {{ deploy_path }}/nohup.log 2>&1 &
|