lib/vulcan/cli.rb in vulcan-0.2.3 vs lib/vulcan/cli.rb in vulcan-0.2.4
- old
+ new
@@ -126,10 +126,12 @@
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"
@@ -138,10 +140,9 @@
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 }
- %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
end