Browse Source

Try instance relative path for wsgi.py first

Peter Justin 7 years ago
parent
commit
b2b30ab912
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wsgi.py

+ 1 - 1
wsgi.py

@@ -5,7 +5,7 @@ from flaskbb.utils.helpers import ReverseProxyPathFix
 _basepath = os.path.dirname(os.path.abspath(__file__))
 _basepath = os.path.dirname(os.path.abspath(__file__))
 
 
 # will throw an error if the config doesn't exist
 # will throw an error if the config doesn't exist
-flaskbb = create_app(config=os.path.join(_basepath, 'flaskbb.cfg'))
+flaskbb = create_app(config='flaskbb.cfg')
 
 
 #  Uncomment to use the middleware
 #  Uncomment to use the middleware
 #flaskbb.wsgi_app = ReverseProxyPathFix(flaskbb.wsgi_app)
 #flaskbb.wsgi_app = ReverseProxyPathFix(flaskbb.wsgi_app)