obrand-admin-server/O-BrandServer/rebuild.sh
2016-04-08 16:45:02 +01:00

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