forked from yazz/VisualJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathansible_deploy.yml
39 lines (28 loc) · 1014 Bytes
/
ansible_deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
- name: This is used to deploy the latest version of Visual Javascript publicly
hosts: webservers
vars:
PROCESS: node
tasks:
- name: Kill running processes
shell: "killall node"
ignore_errors: yes
- command: git reset --hard origin/master
args:
chdir: /root/visifile
- name: install the latest version of Visual Javascript
git:
repo: 'https://github.com/yazz/visualjavascript.git'
dest: /root/visifile
- name: build docs
shell:
cmd: asciidoc -d book main.adoc
args:
chdir: /root/visifile/public/visifile/docs/book/
- name: Start Visual Javascript
shell:
cmd: node src/electron.js --port 443 --public {{ ssl_private }} --private {{ ssl_key }} --usehost {{ use_host }} --https true --cacert1 {{ ssl_cacert1 }} --cacert2 {{ ssl_cacert2 }} --cacert3 {{ ssl_cacert3 }} --showdebug true > nohup.out &
async: 10
poll: 0
args:
chdir: /root/visifile/