Ввести регулярную публикацию отладочной версии (#6)

This commit is contained in:
2025-11-12 04:39:19 +01:00
parent 8e8442a2e7
commit 9b2731ea9c
5 changed files with 71 additions and 2 deletions

15
publish.prod Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
DBG_DIR=/var/www/dbg
DST_DIR=/var/www/html
# Remove current 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