diff --git a/hobo/environment/management/commands/cook.py b/hobo/environment/management/commands/cook.py index 1c4f7d6..951df88 100644 --- a/hobo/environment/management/commands/cook.py +++ b/hobo/environment/management/commands/cook.py @@ -124,6 +124,10 @@ class Command(BaseCommand): slug = 'hobo-%s' % slugify(title) self.create_site(Hobo, url, title, slug, template_name='', variables=None) + # deploy and wait for new site + notify_agents(None) + self.wait_operationals(timeout=self.timeout) + # switch context to new hobo domain = get_domain(url) tenant = TenantMiddleware.get_tenant_by_hostname(domain) connection.set_tenant(tenant)