lib/vulcan/cli.rb in vulcan-0.2.4 vs lib/vulcan/cli.rb in vulcan-0.2.5

- old
+ new

@@ -126,18 +126,19 @@ Dir.mktmpdir do |dir| Dir.chdir(dir) do 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" %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 }