Fix main.yml

This commit is contained in:
Alexandre Iooss 2019-02-09 08:07:10 +01:00
parent d165343631
commit a316a5d461
1 changed files with 7 additions and 4 deletions

View File

@ -27,11 +27,13 @@
# 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
become_user: codimd
# Connection to database
- name: Connect CodiMD to database
- name: Connect CodiMD to PostgreSQL db
template:
src: sequelizerc
dest: /var/local/codimd/codimd/.sequelizerc
@ -40,9 +42,10 @@
mode: 0600
# Update data base
- name: Migrate the Data Base to the latest schema
- name: Migrate the db to the latest schema
command: node_modules/.bin/sequelize db:migrate
args:
chdir /var/local/codimd/codimd
chdir: /var/local/codimd/codimd
become: yes
become_user: codimd