Sha256: 3aafc0510f5721ab87670bbcc10d51d0be75dae59dc3229ee2ec881ba78514af

Contents?: true

Size: 888 Bytes

Versions: 8

Compression:

Stored size: 888 Bytes

Contents

#!/bin/bash

# Set the tmpdir
if [ -z "$TMPDIR" ]; then
  TMPDIR="/tmp"
fi

# Create a temporary build dir and make sure we clean it up. For
# debugging, comment out the trap line.
DEPLOY=`mktemp -d /tmp/vagrant-www-XXXXXX`
trap "rm -rf $DEPLOY" INT TERM EXIT

# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"

# Copy into tmpdir
shopt -s dotglob
cp -R $DIR/website/www/* $DEPLOY/

# Change into that directory
cd $DEPLOY

# Ignore some stuff
touch .gitignore
echo ".sass-cache" >> .gitignore
echo "build" >> .gitignore
echo "vendor" >> .gitignore

# Add everything
git init .
git add .
git commit -q -m "Deploy by $USER"

git remote add heroku git@heroku.com:vagrantup-www-2.git
git push -f heroku main

# Cleanup the deploy
rm -rf $DEPLOY

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
vagrant-unbundled-2.3.6.0 scripts/website_push_www.sh
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/scripts/website_push_www.sh
vagrant-unbundled-2.3.3.0 scripts/website_push_www.sh
vagrant-unbundled-2.3.2.0 scripts/website_push_www.sh
vagrant-unbundled-2.2.19.0 scripts/website_push_www.sh
vagrant-unbundled-2.2.18.0 scripts/website_push_www.sh
vagrant-unbundled-2.2.16.0 scripts/website_push_www.sh
vagrant-unbundled-2.2.14.0 scripts/website_push_www.sh