This commit is contained in:
Михаил Капелько
2025-11-11 22:04:43 +03:00
parent 791f93149d
commit 344e72fec2
3 changed files with 1 additions and 1 deletions

16
publish.prod Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
DBG_DIR=/var/www/dbg
DST_DIR=/var/www/html
# Remove prod
rm -fR $DST_DIR
# Copy dbg to prod
rsync -aivc --delete $DBG_DIR/ $DST_DIR
# Symlink
cd $DST_DIR
ln -s ../cbr
ln -s ../dbg