Skip to content

Commit

Permalink
Setup more heroku config - extra users, transfer ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Feb 25, 2010
1 parent 9d66d5e commit da8e13a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
11 changes: 10 additions & 1 deletion mocra-rails2.rb
Expand Up @@ -6,6 +6,7 @@
# SKIP_GEMS=1 - don't install gems (useful if you know they are already installed)
# DB=mysql - else sqlite3 by default
# NO_SUDO=1 - don't use sudo to install gems
# HEROKU=1 - create heroku app, else will be prompted
#
# The following are just for twitter oauth registration:
# ORGANIZATION - name of your company (default: Mocra)
Expand Down Expand Up @@ -551,8 +552,16 @@ def destroy
git :commit => "-a -m 'Gems, plugins and config'"

# Deploy!
if highline.agree "Deploy to Heroku now? "
if ENV['HEROKU'] or highline.agree "Deploy to Heroku now? "
heroku :create, app_subdomain
heroku :"sharing:add", "dev@mocra.com"
heroku :"sharing:transfer", "dev@mocra.com"
# heroku :"addons:add", "custom_domains:basic" - doesn't work if you're not dev@mocra.com
if highline.agree "Add all Mocra staff? "
["bjeanes@mocra.com", "chendo@mocra.com", "odindutton@gmail.com"].each do |user|
heroku :"sharing:add", user
end
end
git :push => "heroku master"
heroku :rake, "db:migrate"
heroku :open
Expand Down
8 changes: 8 additions & 0 deletions mocra.rb
Expand Up @@ -250,6 +250,14 @@ def template(&block)
# Deploy!
if highline.agree "Deploy to Heroku now? "
heroku :create, "#{app_subdomain} --stack bamboo-ree-1.8.7"
heroku :"sharing:add", "dev@mocra.com"
heroku :"sharing:transfer", "dev@mocra.com"
heroku :"addons:add", "custom_domains:basic"
if highline.agree "Add all Mocra staff? "
["bjeanes@mocra.com", "chendo@mocra.com", "odindutton@gmail.com"].each do |user|
heroku :"sharing:add", user
end
end
git :push => "heroku master"
heroku :rake, "db:migrate"
heroku :open
Expand Down

0 comments on commit da8e13a

Please sign in to comment.