Commit 250c885d authored by Morgan Bazalgette's avatar Morgan Bazalgette

Update build.sh to clear environment before running build

parent bbbb8e40
#!/bin/sh
# Assuming pleroma sits in the upper directory under the dir "pleroma"
rm -rf public/packs public/assets
npm run build
env -i "PATH=$PATH" npm run build
cp public/assets/sw.js ../pleroma/priv/static/sw.js
rm -rf ../pleroma/priv/static/packs
cp -r public/packs ../pleroma/priv/static/packs
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment