mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge pull request #1943 from alchemy-fr/fix/asset-provisioning
Split make targets and update provisioning accordingly
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -68,3 +68,4 @@ grammar/jison-*
|
||||
|
||||
pimple.json
|
||||
playbook.retry
|
||||
npm-debug.log
|
||||
|
7
Makefile
7
Makefile
@@ -1,9 +1,16 @@
|
||||
install:
|
||||
make install_composer
|
||||
make install_assets
|
||||
|
||||
install_composer:
|
||||
composer install
|
||||
|
||||
install_assets:
|
||||
rm -rf ./node_modules
|
||||
rm -rf ./www/assets
|
||||
rm -rf ./www/bower_components
|
||||
npm install
|
||||
./node_modules/bin/gulp build
|
||||
|
||||
config:
|
||||
@php bin/console compile:configuration
|
||||
|
0
node_modules/.gitkeep
generated
vendored
0
node_modules/.gitkeep
generated
vendored
@@ -6,9 +6,18 @@
|
||||
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && npm install -g bower recess
|
||||
|
||||
- name: Initialize application dependencies
|
||||
shell: make install_composer
|
||||
become: yes
|
||||
become_user: vagrant
|
||||
shell: make
|
||||
ignore_errors: yes
|
||||
args:
|
||||
chdir: /vagrant/
|
||||
|
||||
- name: Initialize and build application assets
|
||||
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && make install_assets
|
||||
become: yes
|
||||
become_user: vagrant
|
||||
ignore_errors: yes
|
||||
args:
|
||||
chdir: /vagrant/
|
||||
|
||||
|
Reference in New Issue
Block a user