Fix pleroma install
This commit is contained in:
parent
f1bf180a6e
commit
b8bed7bd8e
|
@ -257,11 +257,19 @@ function install_pleroma_front_end {
|
|||
git checkout $PLEROMA_COMMIT -b $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 eslint@3.19.0
|
||||
npm install -g eslint-plugin-promise@3.5.0
|
||||
npm install -g moment@2.18.1
|
||||
npm install -g node-sass@4.5.2
|
||||
yarn
|
||||
if [ -f $INSTALL_DIR/pleroma/dist/index.html ]; then
|
||||
rm -rf $INSTALL_DIR/pleroma/dist/*
|
||||
fi
|
||||
npm run build
|
||||
if [ ! -d $INSTALL_DIR/pleroma/dist ]; then
|
||||
echo 'Unable to build pleroma'
|
||||
|
|
Loading…
Reference in New Issue