Ввести регулярную публикацию отладочной версии (#6)
This commit is contained in:
15
publish.prod
Executable file
15
publish.prod
Executable 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
|
||||
Reference in New Issue
Block a user