]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - install.sh
Chmoded install.sh
[github/wallabag/wallabag.git] / install.sh
index 29b343b2954ab66135db427124eff3033e15cc31..901b34463bb091245b622752b59fad22fc990302 100755 (executable)
@@ -1,15 +1,6 @@
 #! /usr/bin/env bash
 
-if [[ $ASSETS == 'build' ]]; then
-    echo "Installing PHP dependencies through Composer..."
-    composer install --no-interaction --no-progress --prefer-dist -o
-
-    chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm
-    echo "Downloading librairies through npm..."
-    vendor/mouf/nodejs-installer/bin/local/npm install
-
-    echo "Concat, minify and installing assets..."
-    node_modules/grunt/bin/grunt
-else
-    composer install --no-interaction --no-progress --prefer-dist -o
-fi
+TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
+git checkout $TAG
+SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist
+php bin/console wallabag:install --env=prod