File size: 353 Bytes
bd1c43c
94f1dbe
 
 
 
 
 
 
 
 
 
 
 
8385aa9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
cd frontend
echo "Installing node modules..."
npm install
echo "Building frontend..."
npm run build
if [ $? -eq 0 ]; then
    echo -e "\033[1;32m\nfrontend build success \033[0m"
else
    echo -e "\033[1;31m\nfrontend build failed\n\033[0m" >&2  exit 1
fi
cd ../

gunicorn --workers=2 --log-level debug server:app --bind=0.0.0.0:$FLASK_PORT