2021-12-14 15:07:51 +01:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
TARGET="/opt/baest" # Where pleroma’s repository is sitting
|
2019-09-08 00:45:34 +02:00
|
|
|
|
|
|
|
|
|
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"
|
2020-03-10 00:59:49 +01:00
|
|
|
|
rsync -ra instance/ "${TARGET}/instance/static/instance"
|
2022-02-27 06:43:43 +01:00
|
|
|
|
rsync --delete -ra static/favicon.png "${TARGET}/instance/static/favicon.png"
|