mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-23 20:45:09 +01:00
15 lines
476 B
Bash
Executable File
15 lines
476 B
Bash
Executable File
#!/bin/zsh
|
||
TARGET="/opt/pleroma" # Where pleroma’s repository is sitting
|
||
|
||
yarn install -D
|
||
|
||
rm -rf dist/*
|
||
npm run build
|
||
|
||
rsync -ra public/ "${TARGET}/instance/static"
|
||
cp dist/index.html "${TARGET}/instance/static/index.html"
|
||
rsync --delete -ra dist/static/ "${TARGET}/instance/static/static"
|
||
rsync --delete -ra images/ "${TARGET}/instance/static/images"
|
||
rsync --delete -ra sounds/ "${TARGET}/instance/static/sounds"
|
||
rsync -ra instance/ "${TARGET}/instance/static/instance"
|