This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

move buildpack_url up higher so it gets set before code is pushed

  • Loading branch information...
ddollar committed Jan 14, 2012
1 parent 9b24272 commit ffaa270bcb48f7d66e28fcd0cc6a77727add983a
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/vulcan/cli.rb
View
@@ -128,6 +128,8 @@ def index
api_key = %x{ env BUNDLE_GEMFILE= heroku credentials 2>&1 }.chomp
error "invalid api key detected, try running `heroku credentials`" if api_key =~ / /
+ %x{ env BUNDLE_GEMFILE= heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs.git#versions 2>&1 }
+
system "git init"
system "git remote add heroku git@heroku.com:#{config[:app]}.git"
FileUtils.cp_r "#{server_path}/.", "."
@@ -140,7 +142,6 @@ def index
system "git push heroku -f master"
%x{ env BUNDLE_GEMFILE= heroku config:add SECRET=#{config[:secret]} SPAWN_ENV=heroku HEROKU_APP=#{config[:app]} HEROKU_API_KEY=#{api_key} NODE_PATH=lib 2>&1 }
- %x{ env BUNDLE_GEMFILE= heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs.git#versions 2>&1 }
%x{ env BUNDLE_GEMFILE= heroku addons:add cloudant:oxygen }
end
end

0 comments on commit ffaa270

Please sign in to comment.