tasks/heroku.rake in short-0.3.3 vs tasks/heroku.rake in short-0.4.0
- old
+ new
@@ -20,10 +20,10 @@
desc "config a Heroku app the way we need it. Optionally set APPNAME to set heroku app name"
task :config do
require_relative '../lib/shortener'
$name = ENV['APPNAME'] || "shner-#{`whoami`.chomp}"
cmd = Dir.pwd =~ /heroku$/ ? "" : "cd heroku && "
- cmd += "heroku create #{name}"
+ cmd += "heroku create #{$name}"
cmd += " && heroku addons:add redistogo:nano"
cmd += " && heroku config:add #{Shortener::Configuration.new.to_params}"
cmd += " && heroku addons:add custom_domains:basic"
sh cmd
end