Skip to content
Browse files

Fix wsgi scripts to ignore commandline arguments so arguments to guni…

…corn work
  • Loading branch information...
1 parent 02fa898 commit 8ec2b7b5c3c432ac9b7eb520b507dc5dae597f6d @luser luser committed Jul 9, 2014
Showing with 19 additions and 4 deletions.
  1. +9 −3 wsgi/collector.py
  2. +10 −1 wsgi/middleware.py
View
12 wsgi/collector.py
@@ -4,7 +4,10 @@
from socorro.webapi.servers import ApacheModWSGI
import socorro.collector.collector_app
-from configman import ConfigFileFutureProxy
+from configman import (
+ ConfigFileFutureProxy,
+ environment
+)
if os.path.isfile('/etc/socorro/collector.ini'):
config_path = '/etc/socorro'
@@ -15,8 +18,11 @@
# will then create the wsgi app object.
main(
CollectorApp, # the socorro app class
- config_path=config_path
+ config_path=config_path,
+ values_source_list=[
+ ConfigFileFutureProxy,
+ environment
+ ]
)
application = socorro.collector.collector_app.application
-
View
11 wsgi/middleware.py
@@ -4,6 +4,11 @@
from socorro.webapi.servers import ApacheModWSGI
import socorro.middleware.middleware_app
+from configman import (
+ ConfigFileFutureProxy,
+ environment
+)
+
if os.path.isfile('/etc/socorro/middleware.ini'):
config_path = '/etc/socorro'
else:
@@ -13,7 +18,11 @@
# will then create the wsgi app object.
main(
MiddlewareApp, # the socorro app class
- config_path=config_path
+ config_path=config_path,
+ values_source_list=[
+ ConfigFileFutureProxy,
+ environment
+ ]
)
application = socorro.middleware.middleware_app.application

0 comments on commit 8ec2b7b

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