12 lines
309 B
Bash
Executable File
12 lines
309 B
Bash
Executable File
#!/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"
|
||
rsync --delete -ra dist/static/ "${TARGET}/instance/static/static"
|
||
rsync --delete -ra images/ "${TARGET}/instance/static/images"
|