chore: add production deployment script

This commit is contained in:
2026-02-23 19:21:54 +05:30
parent ee7f029fc5
commit c5ef1bb840

10
prod.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
git pull
rm -rf /root/app/dist/
npm run build
rm -rf /var/www/frontend/*
cp -r /root/app/dist/* /var/www/frontend
chown -R www-data:www-data /var/www/frontend