C2A-Installation-Server/docker/script/update-web-app.sh

13 lines
231 B
Bash

#!/bin/bash
echo "\nStart Buildind Web App Prod"
cd /web/web-app/prod
git pull
rm -rdf node_modules
npm install
npm run build-prod
cp -rdf /var/www/html/c2a-web-app/*
cp -R dist/* /var/www/html
echo "Build finish Web App Prod\n"