Skip to content

Commit 1360e6d

Browse files
committed
Update deploy.sh
1 parent d9a2c1b commit 1360e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
if [ -d "/home/feross/www/build-studynotes.org" ]; then
6-
echo "ERROR: Build folder already exists. Is another build in progress?"
6+
echo "ERROR: Build folder exists. Is another build in progress?"
77
exit 1
88
fi
99

@@ -17,7 +17,7 @@ cp -R /home/feross/www/studynotes.org /home/feross/www/build-studynotes.org
1717
cd /home/feross/www/build-studynotes.org && git pull
1818
cd /home/feross/www/build-studynotes.org && rm -rf node_modules
1919
cd /home/feross/www/build-studynotes.org && npm ci --no-progress
20-
cd /home/feross/www/build-studynotes.org && npm run build
20+
cd /home/feross/www/build-studynotes.org && npm run build --if-present
2121
cd /home/feross/www/build-studynotes.org && npm prune --production --no-progress
2222

2323
sudo supervisorctl stop studynotes-site:

0 commit comments

Comments
 (0)