automate build with bash script

This commit is contained in:
Your New SJW Waifu 2019-09-07 22:45:34 +00:00
parent 6952bff06b
commit 2e9c76a024
1 changed files with 10 additions and 0 deletions

10
build.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
TARGET="/opt/pleroma" # Where pleromas repository is sitting
yarn install -D
rm -rf dist/*
npm run build
cp dist/index.html "${TARGET}/instance/static/index.html"
rsync --delete -ra dist/static/ "${TARGET}/instance/static/static"