fixed the deployment script

This commit is contained in:
Patrick Chanezon 2015-07-11 11:25:38 -07:00
parent 794a8f38cb
commit 4012ba9c03
3 changed files with 6 additions and 5 deletions

2
.deployment Executable file
View File

@ -0,0 +1,2 @@
[config]
command = bash site/deploy.sh

View File

@ -1,2 +0,0 @@
[config]
command = bash deploy.sh

View File

@ -1,4 +1,5 @@
# Install go if needed
cd site
export TOOLS_ROOT_DIR=$HOME/site/deployments/tools
export HUGOROOT=$TOOLS_ROOT_DIR/hugo
export PATH=$PATH:$HUGOROOT
@ -13,9 +14,9 @@ if [ ! -e "$HUGOROOT" ]; then
fi
export BASE_URL="https://$WEBSITE_HOSTNAME"
if [ "$WEBSITE_HOSTNAME" == "docker-toolbox.azurewebsites.net" ]; then
export BASE_URL="https://toolbox.docker.com"
fi
#if [ "$WEBSITE_HOSTNAME" == "docker-toolbox.azurewebsites.net" ]; then
# export BASE_URL="https://toolbox.docker.com"
#fi
# Create and store unique artifact name
hugo_0.14_windows_amd64.exe --baseUrl=$BASE_URL -d $DEPLOYMENT_TARGET