2016-04-27 16:59:05 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
pull_if_exists() {
|
|
|
|
if [ -d $1 ]; then
|
|
|
|
pushd $1
|
|
|
|
git pull
|
|
|
|
popd
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
git pull
|
|
|
|
|
2016-06-02 12:16:03 +02:00
|
|
|
php composer.phar update -o
|
|
|
|
|
2016-04-27 16:59:05 +02:00
|
|
|
|
|
|
|
pull_if_exists module/MonarcCore
|
|
|
|
pull_if_exists module/MonarcBO
|
|
|
|
pull_if_exists node_modules/ng_backoffice
|
|
|
|
|
2016-06-02 12:16:03 +02:00
|
|
|
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcCore/migrations/phinx.php
|
|
|
|
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./module/MonarcBO/migrations/phinx.php
|
|
|
|
|
2016-04-27 16:59:05 +02:00
|
|
|
if [ -d node_modules/ng_backoffice ]; then
|
|
|
|
cd node_modules/ng_backoffice
|
|
|
|
npm install
|
|
|
|
cd ../..
|
|
|
|
fi
|
|
|
|
|
|
|
|
./scripts/link_modules_resources.sh
|