dont watch for prod env

This commit is contained in:
Jurgis Sakalauskas
2023-11-25 10:54:45 +02:00
parent 995ad4c28f
commit cf9da2d4f7
7 changed files with 28 additions and 10 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
# install calibre
echo "Installing calibre"
apt-get update -y
apt-get install -y libopengl0
apt-get install -y libegl1
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin
# npm install
echo "Installing dependencies"
npm install
if [ "$NODE_ENV" == "production" ]; then
echo "Running prod"
npm run prod
else
echo "Running dev"
npm run dev
fi