1. Matthew Schinckel
  2. silverlining


Ian Bicking  committed 480e772

typo from refactoring

  • Participants
  • Parent commits a63af1f
  • Branches default

Comments (0)

Files changed (1)

File silverlining/commands/serve.py

View file
 def serve_python(config, appconfig):
+    dir = config.args.dir
     if os.path.exists(os.path.join(dir, 'bin', 'python')):
         # We are in a virtualenv situation...
         cmd = [os.path.join(dir, 'bin', 'python'),
     exe_name = search_path(['apache2', 'apache', 'httpd'])
     config.logger.notify('Serving on http://localhost:8080')
+    ## FIXME: -X would also be an alternative to -DFOREGROUND; not sure which is better
     run([exe_name, '-f', conf_file,
-         '-d', config.args.dir, '-X'])
+         '-d', config.args.dir, '-DFOREGROUND'])
 def _turn_sigterm_into_systemexit():