1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-23 10:25:33 +01:00
pleroma-fe/build.sh
2020-04-02 13:23:12 -05:00

16 lines
536 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/zsh
TARGET="/opt/pleroma" # Where pleromas 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"
rsync --delete -ra pages/ "${TARGET}/instance/static/pages"