mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +00:00
Split build into smaller targets
This commit is contained in:
11
Makefile
11
Makefile
@@ -1,16 +1,23 @@
|
|||||||
install:
|
install:
|
||||||
make install_composer
|
make install_composer
|
||||||
|
make clean_assets
|
||||||
|
make install_asset_dependencies
|
||||||
make install_assets
|
make install_assets
|
||||||
|
|
||||||
install_composer:
|
install_composer:
|
||||||
composer install
|
composer install
|
||||||
|
|
||||||
|
install_asset_dependencies:
|
||||||
|
npm install
|
||||||
|
./node_modules/.bin/gulp build
|
||||||
|
|
||||||
install_assets:
|
install_assets:
|
||||||
|
./node_modules/.bin/gulp install-assets
|
||||||
|
|
||||||
|
clean_assets:
|
||||||
rm -rf ./node_modules
|
rm -rf ./node_modules
|
||||||
rm -rf ./www/assets
|
rm -rf ./www/assets
|
||||||
rm -rf ./www/bower_components
|
rm -rf ./www/bower_components
|
||||||
npm install
|
|
||||||
./node_modules/.bin/gulp build
|
|
||||||
|
|
||||||
config:
|
config:
|
||||||
@php bin/console compile:configuration
|
@php bin/console compile:configuration
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
become_user: vagrant
|
become_user: vagrant
|
||||||
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && npm install -g bower recess
|
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && npm install -g bower recess
|
||||||
|
|
||||||
- name: Initialize application dependencies
|
- name: Install Composer dependencies
|
||||||
shell: make install_composer
|
shell: make install_composer
|
||||||
become: yes
|
become: yes
|
||||||
become_user: vagrant
|
become_user: vagrant
|
||||||
@@ -13,7 +13,15 @@
|
|||||||
args:
|
args:
|
||||||
chdir: /vagrant/
|
chdir: /vagrant/
|
||||||
|
|
||||||
- name: Initialize and build application assets
|
- name: Install assets dependencies
|
||||||
|
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && make install_asset_dependencies
|
||||||
|
become: yes
|
||||||
|
become_user: vagrant
|
||||||
|
ignore_errors: yes
|
||||||
|
args:
|
||||||
|
chdir: /vagrant/
|
||||||
|
|
||||||
|
- name: Install assets
|
||||||
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && make install_assets
|
shell: export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && make install_assets
|
||||||
become: yes
|
become: yes
|
||||||
become_user: vagrant
|
become_user: vagrant
|
||||||
@@ -21,7 +29,7 @@
|
|||||||
args:
|
args:
|
||||||
chdir: /vagrant/
|
chdir: /vagrant/
|
||||||
|
|
||||||
- name: Initialize application configuration
|
- name: Run application setup
|
||||||
become: yes
|
become: yes
|
||||||
become_user: vagrant
|
become_user: vagrant
|
||||||
shell: 'bin/setup system:install --email=admin@{{ hostname }}.vb --password=admin --db-host=127.0.0.1 --db-port=3306 --db-user={{ mariadb.user }} --db-password={{ mariadb.password }} --db-template=fr --appbox={{ mariadb.database }} --databox={{ mariadb.databox_db }} --server-name=www.{{ hostname }}.vb --data-path=/vagrant/datas -y'
|
shell: 'bin/setup system:install --email=admin@{{ hostname }}.vb --password=admin --db-host=127.0.0.1 --db-port=3306 --db-user={{ mariadb.user }} --db-password={{ mariadb.password }} --db-template=fr --appbox={{ mariadb.database }} --databox={{ mariadb.databox_db }} --server-name=www.{{ hostname }}.vb --data-path=/vagrant/datas -y'
|
||||||
|
Reference in New Issue
Block a user