Added less/js to provision

This commit is contained in:
Felipe Martín 2015-06-17 22:31:54 +02:00
parent a63fe02cbf
commit df209bed21
6 changed files with 32 additions and 5 deletions

View File

@ -0,0 +1,3 @@
---
- name: Install bower requirements
bower: path={{ deploy_path.stdout }}/git

View File

@ -5,3 +5,11 @@
command=migrate
app_path={{ deploy_path.stdout }}/git
virtualenv={{ deploy_path.stdout }}/.virtualenv
settings=amiibofindr.settings.local
- name: Performs manage.py collectstatic
django_manage: >
command=collectstatic
app_path={{ deploy_path.stdout }}/git
virtualenv={{ deploy_path.stdout }}/.virtualenv
settings=amiibofindr.settings.local

View File

@ -0,0 +1,9 @@
---
- name: Execute gulp scripts
command: gulp scripts
args:
chdir: "{{ deploy_path.stdout }}/git"
- name: Execute gulp less
command: gulp less
args:
chdir: "{{ deploy_path.stdout }}/git"

View File

@ -19,8 +19,8 @@
- include: virtualenv.yml
remote_user: "{{ app_user }}"
#- include: node.yml
# remote_user: "{{ app_user }}"
- include: node.yml
remote_user: "{{ app_user }}"
- include: config.yml
remote_user: "{{ app_user }}"
@ -29,6 +29,12 @@
remote_user: "{{ app_user }}"
when: initial_syncdb.stat.exists == False
- include: bower.yml
remote_user: "{{ app_user }}"
- include: gulp.yml
remote_user: "{{ app_user }}"
- include: django.yml
remote_user: "{{ app_user }}"
when: initial_syncdb.stat.exists

View File

@ -1,3 +1,3 @@
#---
#- name: Install node requirements
# npm: path={{ deploy_path.stdout }}/git/src/backend
---
- name: Install node requirements
npm: path={{ deploy_path.stdout }}/git

View File

@ -4,3 +4,4 @@
sudo: true
with_items:
- gulp
- bower