2019-09-08 00:45:34 +02:00
|
|
|
|
#!/bin/sh
|
|
|
|
|
TARGET="/opt/pleroma" # Where pleroma’s repository is sitting
|
|
|
|
|
|
|
|
|
|
yarn install -D
|
|
|
|
|
|
|
|
|
|
rm -rf dist/*
|
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
|
|
cp dist/index.html "${TARGET}/instance/static/index.html"
|
2019-09-24 17:30:05 +02:00
|
|
|
|
rsync --delete -ra dist/static/ "${TARGET}/instance/static/static"
|
|
|
|
|
rsync --delete -ra images/ "${TARGET}/instance/static/images"
|
2019-09-26 13:03:13 +02:00
|
|
|
|
rsync --delete -ra sounds/ "${TARGET}/instance/static/sounds"
|
|
|
|
|
|