Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
move buildpack_url up higher so it gets set before code is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Jan 14, 2012
1 parent 9b24272 commit ffaa270
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vulcan/cli.rb
Expand Up @@ -128,6 +128,8 @@ def index
api_key = %x{ env BUNDLE_GEMFILE= heroku credentials 2>&1 }.chomp api_key = %x{ env BUNDLE_GEMFILE= heroku credentials 2>&1 }.chomp
error "invalid api key detected, try running `heroku credentials`" if api_key =~ / / 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 init"
system "git remote add heroku git@heroku.com:#{config[:app]}.git" system "git remote add heroku git@heroku.com:#{config[:app]}.git"
FileUtils.cp_r "#{server_path}/.", "." FileUtils.cp_r "#{server_path}/.", "."
Expand All @@ -140,7 +142,6 @@ def index
system "git push heroku -f master" 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 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 } %x{ env BUNDLE_GEMFILE= heroku addons:add cloudant:oxygen }
end end
end end
Expand Down

0 comments on commit ffaa270

Please sign in to comment.