mirror of
https://gitlab.silvrtree.co.uk/martind2000/obrand-admin-server.git
synced 2025-01-10 21:45:08 +00:00
21 lines
444 B
Bash
21 lines
444 B
Bash
|
#!/bin/bash
|
||
|
NVM="$HOME/.nvm"
|
||
|
NVM_VERSION="5.7.0"
|
||
|
DEV="$HOME/dev"
|
||
|
LIVE="$HOME/live"
|
||
|
SWAP="/swapfile"
|
||
|
DBSETUP="obrand-admin-server/dbrebuild.sh"
|
||
|
PKG_MANAGER=$( command -v yum || command -v apt-get ) || echo "Neither yum nor apt-get found"
|
||
|
PKG_DEVICE=$(basename $PKG_MANAGER)
|
||
|
|
||
|
echo Copying...
|
||
|
|
||
|
cd $DEV/O-Brand/dist
|
||
|
cp -ra . $DEV/obrand-admin-server/wwwroot
|
||
|
|
||
|
cd $DEV/obrand-admin-server
|
||
|
|
||
|
|
||
|
rsync -uav --exclude .git $DEV/obrand-admin-server/ $LIVE
|
||
|
|