Skip to content

Commit

Permalink
Transfer application to Heroku team if specified (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
suchow committed Dec 10, 2016
1 parent 7095e90 commit 44e3c14
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dallinger/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,21 @@ def deploy_sandbox_shared_setup(verbose=True, app=None, web_procs=1):
stdout=out,
shell=True)

# Transfer application to the correct team if necessary.
try:
team = config.get("Heroku Access", "team")
log("Trasferring to {} team...".format(team))
subprocess.call([
"heroku",
"apps:transfer",
team,
"--app",
app_name(id),
])

except Exception as e:
pass

database_size = config.get('Database Parameters', 'database_size')

try:
Expand Down

0 comments on commit 44e3c14

Please sign in to comment.