mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 12:41:06 +03:30
add docker file
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "Please run as root" && exit 0;
|
||||
fi
|
||||
|
||||
|
||||
git pull origin master
|
||||
|
||||
npm install
|
||||
|
||||
npm run prod
|
||||
|
||||
cp -r /home/administrator/apps/cssd/public/js/vue /home/administrator/apps/nginx/www/cssd/public/js/
|
||||
|
||||
|
||||
cp /home/administrator/apps/cssd/public/mix-manifest.json /home/administrator/apps/nginx/www/cssd/public/
|
||||
|
||||
|
||||
chown -R www-data:www-data /home/administrator/apps/nginx/www/cssd/public
|
||||
|
||||
|
||||
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
docker-compose up -d --build app
|
||||
fi
|
||||
Reference in New Issue
Block a user