Use sudo for rm and cp in deploy.sh to fix permission errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8113a2b37f
commit
d7bc3593a4
1 changed files with 3 additions and 3 deletions
|
|
@ -43,9 +43,9 @@ echo "==> Building production bundle..."
|
|||
npm run build
|
||||
|
||||
echo "==> Deploying to $WEB_DIR..."
|
||||
mkdir -p "$WEB_DIR"
|
||||
rm -rf "${WEB_DIR:?}"/*
|
||||
cp -r dist/* "$WEB_DIR/"
|
||||
sudo mkdir -p "$WEB_DIR"
|
||||
sudo rm -rf "${WEB_DIR:?}"/*
|
||||
sudo cp -r dist/* "$WEB_DIR/"
|
||||
|
||||
echo "==> Setting permissions..."
|
||||
sudo chown -R www-data:www-data "$WEB_DIR"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue