obrand-admin-server/rebuild.sh

21 lines
444 B
Bash
Raw Permalink Normal View History

2016-04-05 13:53:16 +00:00
#!/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