File tree Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Expand file tree Collapse file tree 3 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -256,14 +256,6 @@ def integration():
256
256
_set_gateway ('integration.publishing.service.gov.uk' )
257
257
258
258
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
-
267
259
@task
268
260
def all ():
269
261
"""Select all machines in current environment"""
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ def _monitoring_hostname(host):
16
16
"""Returns the canonical name (according to our monitoring) for a host"""
17
17
if env ['environment' ] == 'production' :
18
18
return "{0}.publishing.service.gov.uk" .format (host )
19
- elif env ['environment' ] == 'preview' : # FIXME: Remove once Preview is deleted
20
- return "%s.production" % host
21
19
else :
22
20
return "{0}.{1}.publishing.service.gov.uk" .format (host , env ['environment' ])
23
21
Original file line number Diff line number Diff line change @@ -60,13 +60,7 @@ def bodge_unicorn(name):
60
60
"""
61
61
Manually kill off (and restart) unicorn processes by name
62
62
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
70
64
71
65
Yes. This is a bodge. Sorry.
72
66
"""
You can’t perform that action at this time.
0 commit comments