Skip to content
Browse files

compare lowercased configuration value to properly set PROD or DEV mode

  • Loading branch information...
1 parent 482b191 commit 32feeb7c95c1fd9b2fdbea652bdfc1493bb89220 @jyyna jyyna committed Sep 18, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 framework/pym/play/application.py
View
6 framework/pym/play/application.py
@@ -234,9 +234,9 @@ def java_cmd(self, java_args, cp_args=None, className='play.server.Server', args
self.jpda_port = self.readConf('jpda.port')
- application_mode = self.readConf('application.mode')
+ application_mode = self.readConf('application.mode').lower()
- if application_mode == 'prod' or application_mode == 'PROD':
+ if application_mode == 'prod':
java_args.append('-server')
java_policy = self.readConf('java.policy')
@@ -254,7 +254,7 @@ def java_cmd(self, java_args, cp_args=None, className='play.server.Server', args
java_args.append('-Dfile.encoding=utf-8')
- if self.readConf('application.mode') == 'dev' or self.readConf('application.mode') == 'DEV':
+ if self.readConf('application.mode').lower() == 'dev':
if not self.play_env["disable_check_jpda"]: self.check_jpda()
java_args.append('-Xdebug')
java_args.append('-Xrunjdwp:transport=dt_socket,address=%s,server=y,suspend=n' % self.jpda_port)

0 comments on commit 32feeb7

Please sign in to comment.
Something went wrong with that request. Please try again.