Skip to content

Commit

Permalink
Use dev by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-McNab-UK committed Mar 22, 2024
1 parent 527abbe commit 0803e3d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions containers/pro.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Put this file in /var/run/justin/overrides to make
# containers part of the int instance of justIN

[agents]
# this line is checked by start-justin-httpd to determine pro / int / dev
pro_dev = pro

[database]
hostname = justin-db-pro.dune.hep.ac.uk
6 changes: 4 additions & 2 deletions modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def readConf():
try:
mysqlHostname = parser.get('database','hostname').strip()
except:
mysqlHostname = 'justin-db-pro.dune.hep.ac.uk'
# In case of misconfiguration, the default is dev
mysqlHostname = 'justin-db-dev.dune.hep.ac.uk'

try:
mysqlPassword = parser.get('database','password').strip()
Expand Down Expand Up @@ -241,7 +242,8 @@ def readConf():
try:
proDev = parser.get('agents','pro_dev').strip()
except:
proDev = 'pro'
# In case of misconfiguration, the default is dev
proDev = 'dev'

try:
nonJustinFraction = float(
Expand Down

0 comments on commit 0803e3d

Please sign in to comment.