2019-10-21 03:18:56 +02:00
|
|
|
|
#!/bin/zsh
|
2019-09-08 00:45:34 +02:00
|
|
|
|
TARGET="/opt/pleroma" # Where pleroma’s repository is sitting
|
|
|
|
|
|
|
|
|
|
yarn install -D
|
|
|
|
|
|
|
|
|
|
rm -rf dist/*
|
|
|
|
|
npm run build
|
|
|
|
|
|
2019-10-14 19:11:43 +02:00
|
|
|
|
rsync -ra public/ "${TARGET}/instance/static"
|
2019-09-08 00:45:34 +02:00
|
|
|
|
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"
|
2019-10-18 18:39:09 +02:00
|
|
|
|
rsync --delete -ra instance/ "${TARGET}/instance/static/instance"
|