75d3bd6 by Anon Ray at 2014-02-19 | 1 | # -*- coding: utf-8 -*- |
2 | # Script to run the application server in development mode |
|
3 | ||
4 | import sys, os |
|
5 | from swtstore import create_app, getDBInstance |
|
6 | ||
7 | # Get the path to the base directory of the app |
|
8 | BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__))) |
|
9 | ||
10 | # append the path to the WSGI env path |
|
11 | sys.path.insert(0, BASE_DIR) |
|
12 | ||
13 | app = create_app() |
|
14 | ||
15 | if __name__ == '__main__': |
|
16 | app.run(debug=True, host='0.0.0.0', port=5001) |