From 770d38b7541235f53e7e56a537c94d02c5469049 Mon Sep 17 00:00:00 2001 From: Thibaud Fabre Date: Wed, 21 Sep 2016 16:54:20 +0200 Subject: [PATCH] Install dependencies and public assets during initial provisioning --- Makefile | 5 +++-- resources/ansible/roles/app/tasks/main.yml | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2c63f99c81..56f0e08fd8 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ install: - composer install -o + composer install rm -rf ./node_modules + rm -rf ./www/assets + rm -rf ./www/bower_components npm install - php bin/console system:clear-cache config: @php bin/console compile:configuration diff --git a/resources/ansible/roles/app/tasks/main.yml b/resources/ansible/roles/app/tasks/main.yml index 632a820e81..621bea7789 100644 --- a/resources/ansible/roles/app/tasks/main.yml +++ b/resources/ansible/roles/app/tasks/main.yml @@ -5,6 +5,13 @@ become_user: vagrant shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && npm install -g bower recess +- name: Initialize application dependencies + become: yes + become_user: vagrant + shell: make + args: + chdir: /vagrant/ + - name: Initialize application configuration become: yes become_user: vagrant