Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael William Coughlin
GraceDB Server
Commits
8401a718
Commit
8401a718
authored
6 years ago
by
Tanner Prestegard
Committed by
GraceDB
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement safeguards for no debug mode in production/playground
parent
4ea31b10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/settings/container/production.py
+4
-0
4 additions, 0 deletions
config/settings/container/production.py
config/settings/vm/playground.py
+4
-1
4 additions, 1 deletion
config/settings/vm/playground.py
config/settings/vm/production.py
+6
-0
6 additions, 0 deletions
config/settings/vm/production.py
with
14 additions
and
1 deletion
config/settings/container/production.py
+
4
−
0
View file @
8401a718
...
...
@@ -7,3 +7,7 @@ DEBUG = False
SEND_XMPP_ALERTS
=
True
SEND_PHONE_ALERTS
=
True
SEND_EMAIL_ALERTS
=
True
# Safety check on debug mode for production
if
(
DEBUG
==
True
):
raise
RuntimeError
(
"
Turn off debug mode for production
"
)
This diff is collapsed.
Click to expand it.
config/settings/vm/playground.py
+
4
−
1
View file @
8401a718
# Settings for a playground GraceDB instance (for user testing) running
# on a VM with Puppet provisioning. Starts with vm.py settings (which inherits
# from base.py settings) and overrides or adds to them.
import
textwrap
from
.base
import
*
CONFIG_NAME
=
"
USER TESTING
"
...
...
@@ -48,3 +47,7 @@ A nightly cron job removes events older than 14 days.</li>
<b>112</b>.</li>
</ul>
"""
# Safety check on debug mode for playground
if
(
DEBUG
==
True
):
raise
RuntimeError
(
"
Turn off debug mode for playground
"
)
This diff is collapsed.
Click to expand it.
config/settings/vm/production.py
+
6
−
0
View file @
8401a718
...
...
@@ -3,6 +3,8 @@
# settings) and overrides or adds to them.
from
.base
import
*
DEBUG
=
False
# LVAlert Overseer settings
LVALERT_OVERSEER_INSTANCES
=
[
{
...
...
@@ -15,3 +17,7 @@ LVALERT_OVERSEER_INSTANCES = [
SEND_XMPP_ALERTS
=
True
SEND_PHONE_ALERTS
=
True
SEND_EMAIL_ALERTS
=
True
# Safety check on debug mode for production
if
(
DEBUG
==
True
):
raise
RuntimeError
(
"
Turn off debug mode for production
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment