Fix pleroma install

This commit is contained in:
Bob Mottram 2017-04-30 19:54:32 +01:00
parent f1bf180a6e
commit b8bed7bd8e
1 changed files with 8 additions and 0 deletions

View File

@ -257,11 +257,19 @@ function install_pleroma_front_end {
git checkout $PLEROMA_COMMIT -b $PLEROMA_COMMIT git checkout $PLEROMA_COMMIT -b $PLEROMA_COMMIT
set_completion_param "${app_name} pleroma commit" "$PLEROMA_COMMIT" set_completion_param "${app_name} pleroma commit" "$PLEROMA_COMMIT"
if [ -d $INSTALL_DIR/pleroma/node_modules ]; then
rm -rf $INSTALL_DIR/pleroma/node_modules
fi
npm install -g yarn npm install -g yarn
npm install -g eslint@3.19.0 npm install -g eslint@3.19.0
npm install -g eslint-plugin-promise@3.5.0 npm install -g eslint-plugin-promise@3.5.0
npm install -g moment@2.18.1 npm install -g moment@2.18.1
npm install -g node-sass@4.5.2
yarn yarn
if [ -f $INSTALL_DIR/pleroma/dist/index.html ]; then
rm -rf $INSTALL_DIR/pleroma/dist/*
fi
npm run build npm run build
if [ ! -d $INSTALL_DIR/pleroma/dist ]; then if [ ! -d $INSTALL_DIR/pleroma/dist ]; then
echo 'Unable to build pleroma' echo 'Unable to build pleroma'