|
|
|
@ -6,19 +6,18 @@
|
|
|
|
|
- include_tasks: 1_user_group.yml
|
|
|
|
|
|
|
|
|
|
# Download CodiMD
|
|
|
|
|
# TODO : temporally disabled until 1.3.0 is out (because of uws bug)
|
|
|
|
|
# - name: Clone CodiMD project
|
|
|
|
|
# git:
|
|
|
|
|
# repo: https://github.com/hackmdio/codimd.git
|
|
|
|
|
# dest: /var/local/codimd/codimd
|
|
|
|
|
# version: 1.2.1
|
|
|
|
|
# become: true
|
|
|
|
|
# become_user: codimd
|
|
|
|
|
# notify: Build front-end for CodiMD
|
|
|
|
|
- name: Clone CodiMD project
|
|
|
|
|
git:
|
|
|
|
|
repo: https://github.com/hackmdio/codimd.git
|
|
|
|
|
dest: /var/local/codimd/codimd
|
|
|
|
|
version: 1.3.0
|
|
|
|
|
become: true
|
|
|
|
|
become_user: codimd
|
|
|
|
|
notify: Build front-end for CodiMD
|
|
|
|
|
|
|
|
|
|
# Setup dependencies and configs
|
|
|
|
|
- name: Install CodiMD depedencies
|
|
|
|
|
command: bin/setup
|
|
|
|
|
command: NODE_ENV="production" bin/setup
|
|
|
|
|
args:
|
|
|
|
|
chdir: /var/local/codimd/codimd
|
|
|
|
|
become: true
|
|
|
|
@ -33,14 +32,6 @@
|
|
|
|
|
group: codimd
|
|
|
|
|
mode: 0600
|
|
|
|
|
|
|
|
|
|
# Update database
|
|
|
|
|
- name: Migrate the db to the latest schema
|
|
|
|
|
command: node_modules/.bin/sequelize db:migrate
|
|
|
|
|
args:
|
|
|
|
|
chdir: /var/local/codimd/codimd
|
|
|
|
|
become: true
|
|
|
|
|
become_user: codimd
|
|
|
|
|
|
|
|
|
|
# Configure
|
|
|
|
|
- name: Configure CodiMD
|
|
|
|
|
template:
|
|
|
|
|