Fix main.yml

This commit is contained in:
Alexandre Iooss 2019-02-09 08:07:10 +01:00
parent d165343631
commit a316a5d461

View file

@ -27,11 +27,13 @@
# Build front-end bundle # Build front-end bundle
- name: Build front-end for CodiMD - name: Build front-end for CodiMD
command: npm run build command: npm run build
args:
chdir: /var/local/codimd/codimd
become: yes become: yes
become_user: CodiMD become_user: codimd
# Connection to database # Connection to database
- name: Connect CodiMD to database - name: Connect CodiMD to PostgreSQL db
template: template:
src: sequelizerc src: sequelizerc
dest: /var/local/codimd/codimd/.sequelizerc dest: /var/local/codimd/codimd/.sequelizerc
@ -40,9 +42,10 @@
mode: 0600 mode: 0600
# Update data base # 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 command: node_modules/.bin/sequelize db:migrate
args: args:
chdir /var/local/codimd/codimd chdir: /var/local/codimd/codimd
become: yes become: yes
become_user: codimd become_user: codimd