Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Drupal
drupalizer
Commits
655c9876
Commit
655c9876
authored
Nov 01, 2017
by
Victor Nikulshin
Browse files
Ignore failures of setting site offline or online
parent
1c878517
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy.py
View file @
655c9876
...
@@ -77,7 +77,7 @@ def _set_site_offline(target, environment):
...
@@ -77,7 +77,7 @@ def _set_site_offline(target, environment):
Helper function to set the site in maintenance.
Helper function to set the site in maintenance.
:param environment
:param environment
"""
"""
run
(
'drush --yes --root={} vset site_offline 1'
.
format
(
target
.
get
(
'root'
)))
run
(
'drush --yes --root={} vset site_offline 1
|| true
'
.
format
(
target
.
get
(
'root'
)))
print
(
green
(
'The is in maintenance mode on the target environment {}.'
.
format
(
environment
)))
print
(
green
(
'The is in maintenance mode on the target environment {}.'
.
format
(
environment
)))
...
@@ -86,7 +86,7 @@ def _set_site_online(target, environment):
...
@@ -86,7 +86,7 @@ def _set_site_online(target, environment):
Helper function to set the site online.
Helper function to set the site online.
:param environment
:param environment
"""
"""
run
(
'drush --yes --root={} vset site_offline 0'
.
format
(
target
.
get
(
'root'
)))
run
(
'drush --yes --root={} vset site_offline 0
|| true
'
.
format
(
target
.
get
(
'root'
)))
print
(
green
(
'The site is online on the target environment {}.'
.
format
(
environment
)))
print
(
green
(
'The site is online on the target environment {}.'
.
format
(
environment
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment