mirror of
https://github.com/rmaake1/httpstatuses.git
synced 2024-11-20 01:12:43 +01:00
7 lines
347 B
Bash
Executable File
7 lines
347 B
Bash
Executable File
build="build-${CIRCLE_BUILD_NUM}"
|
|
sudo mkdir ~/${build}
|
|
sudo cp -R ~/httpstatuses/build/. ~/${build}
|
|
echo "Deploying ${build} to ${DEPLOY_TARGET}"
|
|
rsync -r -l ~/${build} ${DEPLOY_TARGET}:/srv/www/httpstatuses.com
|
|
ssh ${DEPLOY_TARGET} "ln -sfn /srv/www/httpstatuses.com/${build} /srv/www/httpstatuses.com/live"
|
|
echo "Build deployed and pushed live" |