rename
This commit is contained in:
16
publish.prod
Executable file
16
publish.prod
Executable 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
|
||||
Reference in New Issue
Block a user