Skip to content

Commit 36c8133

Browse files
committed
Remove preview
Preview is dead, long live integration.
1 parent 55087a0 commit 36c8133

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

fabfile.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,6 @@ def integration():
256256
_set_gateway('integration.publishing.service.gov.uk')
257257

258258

259-
# FIXME: Remove once Preview environment is deleted
260-
@task
261-
def preview():
262-
"""Select preview environment"""
263-
env['environment'] = 'preview'
264-
_set_gateway('preview.alphagov.co.uk')
265-
266-
267259
@task
268260
def all():
269261
"""Select all machines in current environment"""

nagios.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ def _monitoring_hostname(host):
1616
"""Returns the canonical name (according to our monitoring) for a host"""
1717
if env['environment'] == 'production':
1818
return "{0}.publishing.service.gov.uk".format(host)
19-
elif env['environment'] == 'preview': # FIXME: Remove once Preview is deleted
20-
return "%s.production" % host
2119
else:
2220
return "{0}.{1}.publishing.service.gov.uk".format(host, env['environment'])
2321

vm.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,7 @@ def bodge_unicorn(name):
6060
"""
6161
Manually kill off (and restart) unicorn processes by name
6262
63-
e.g. To kill off and restart contentapi on backend-1 in Preview:
64-
65-
fab integration -H backend-1.backend vm.bodge_unicorn:contentapi
66-
67-
...or on all backend hosts in Preview:
68-
69-
fab integration class:backend vm.bodge_unicorn:contentapi
63+
e.g. vm.bodge_unicorn:contentapi
7064
7165
Yes. This is a bodge. Sorry.
7266
"""

0 commit comments

Comments
 (0)