]> git.immae.eu Git - github/wallabag/wallabag.git/blob - install.sh
manage assets through npm
[github/wallabag/wallabag.git] / install.sh
1 #! /usr/bin/env bash
2
3 if [[ $ASSETS == 'nobuild' ]]; then
4 composer install --no-interaction --no-progress --prefer-dist -o
5 else
6
7 echo "Installing PHP dependencies through Composer..."
8 if [[ $ASSETS == 'build' ]]; then
9 composer install --no-interaction --no-progress --prefer-dist -o
10 else
11 SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
12 fi
13
14 chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm
15 echo "Downloading javascript librairies through npm..."
16 vendor/mouf/nodejs-installer/bin/local/npm install
17
18 echo "Downloading fonts librairies through bower..."
19 node_modules/bower/bin/bower install
20
21 echo "Concat, minify and installing assets..."
22 node_modules/grunt/bin/grunt
23
24 if [[ $ASSETS != 'build' ]]; then
25 echo "Installing wallabag..."
26 php bin/console wallabag:install --env=prod
27 fi
28
29 fi