Only rebuild when code changes
This commit is contained in:
parent
9cee4b5ada
commit
ebb716d5f2
2 changed files with 10 additions and 8 deletions
9
roles/codimd/handlers/main.yml
Normal file
9
roles/codimd/handlers/main.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
# Build front-end bundle
|
||||||
|
- name: Build front-end for CodiMD
|
||||||
|
command: npm run build
|
||||||
|
args:
|
||||||
|
chdir: /var/local/codimd/codimd
|
||||||
|
become: yes
|
||||||
|
become_user: codimd
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
version: 1.2.1
|
version: 1.2.1
|
||||||
become: yes
|
become: yes
|
||||||
become_user: codimd
|
become_user: codimd
|
||||||
|
notify: Build front-end for CodiMD
|
||||||
|
|
||||||
# Setup dependencies and configs
|
# Setup dependencies and configs
|
||||||
- name: Install CodiMD depedencies
|
- name: Install CodiMD depedencies
|
||||||
|
@ -22,14 +23,6 @@
|
||||||
become: yes
|
become: yes
|
||||||
become_user: codimd
|
become_user: codimd
|
||||||
|
|
||||||
# Build front-end bundle
|
|
||||||
- name: Build front-end for CodiMD
|
|
||||||
command: npm run build
|
|
||||||
args:
|
|
||||||
chdir: /var/local/codimd/codimd
|
|
||||||
become: yes
|
|
||||||
become_user: codimd
|
|
||||||
|
|
||||||
# Connection to database
|
# Connection to database
|
||||||
- name: Connect CodiMD to PostgreSQL db
|
- name: Connect CodiMD to PostgreSQL db
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue