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

13 lines
256 B
Bash

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