Skip to content

Commit

Permalink
Minor deployment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Jan 2, 2015
1 parent 8015854 commit be1b51a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define '64bit' do |n1|
n1.vm.box = 'chef/ubuntu-10.04'
end

config.vm.define '32bit' do |n2|
n2.vm.box = 'chef/ubuntu-10.04-i386'
end

config.push.define "www", strategy: "local-exec" do |push|
push.script = "scripts/website_push.sh"
end
end
5 changes: 5 additions & 0 deletions scripts/website_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that directory
cd $DIR

# Add the git remote if it doesn't exist
git remote | grep heroku || {
git remote add heroku [email protected]:consul-www.git
}

# Push the subtree (force)
git push heroku `git subtree split --prefix website master`:master --force

0 comments on commit be1b51a

Please sign in to comment.