Install dependencies and public assets during initial provisioning

This commit is contained in:
Thibaud Fabre
2016-09-21 16:54:20 +02:00
parent 4f6a062a69
commit 01cbec3048
2 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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