X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=install.sh;fp=install.sh;h=414f73f273f8df6b5ed2b02db3fb8405ff8c6345;hb=5ecdfcd041767c9e3244a92bb0a6cc3c3f80fea3;hp=0000000000000000000000000000000000000000;hpb=9f95b14dec88cf083cefa38d5fbd84189e07acac;p=github%2Fwallabag%2Fwallabag.git diff --git a/install.sh b/install.sh new file mode 100755 index 00000000..414f73f2 --- /dev/null +++ b/install.sh @@ -0,0 +1,29 @@ +#! /usr/bin/env bash + +if [[ $ASSETS == 'nobuild' ]]; then + composer install --no-interaction --no-progress --prefer-dist -o +else + + echo "Installing PHP dependencies through Composer..." + if [[ $ASSETS == 'build' ]]; then + composer install --no-interaction --no-progress --prefer-dist -o + else + SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist + fi + + chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm + echo "Downloading javascript librairies through npm..." + vendor/mouf/nodejs-installer/bin/local/npm install + + echo "Downloading fonts librairies through bower..." + node_modules/bower/bin/bower install + + echo "Concat, minify and installing assets..." + node_modules/grunt/bin/grunt + + if [[ $ASSETS != 'build' ]]; then + echo "Installing wallabag..." + php bin/console wallabag:install --env=prod + fi + +fi