Permalink
Browse files

adjust buildpack location after git remotes are set up

  • Loading branch information...
1 parent c11e713 commit 5f558b6af1ea9f65e69dbe580aafce43e1fbf653 @ddollar ddollar committed Jan 14, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/vulcan/cli.rb
View
@@ -128,15 +128,16 @@ 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}/.", "."
File.open(".gitignore", "w") do |file|
file.puts ".env"
file.puts "node_modules"
end
+
+ %x{ env BUNDLE_GEMFILE= heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs.git#versions 2>&1 }
+
system "git add . >/dev/null"
system "git commit -m commit >/dev/null"
system "git push heroku -f master"

0 comments on commit 5f558b6

Please sign in to comment.