aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-11-03 12:09:54 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-11-03 12:09:54 +0100
commit016e452c09683a31e5a719a9ae5fde6ad15c4ef5 (patch)
treeb273c04de705cbaa5bdee34f8941e17508200ecb
parent8459a801464e38cfe0167f35b2fe85f870175d04 (diff)
app: New URLs for API endpoints.
* Add threaded options for development use. Change-Id: Ia3f3723bd9b40e29bcbc14af3135e80c3549ccb6
-rw-r--r--app/dashboard/default_settings.py15
-rwxr-xr-xapp/server.py2
2 files changed, 9 insertions, 8 deletions
diff --git a/app/dashboard/default_settings.py b/app/dashboard/default_settings.py
index 44210b4..995a69d 100644
--- a/app/dashboard/default_settings.py
+++ b/app/dashboard/default_settings.py
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-LOGGER_NAME = 'kernel-ci-frontend'
+LOGGER_NAME = 'kernelci-frontend'
SESSION_COOKIE_NAME = 'linarokernelci'
# Following keys should be defined in an external file and passed as an
@@ -56,12 +56,12 @@ KNOWN_GIT_URLS = {
}
# Backend API endpoints.
-JOB_API_ENDPOINT = '/api/job'
-DEFCONFIG_API_ENDPOINT = '/api/defconfig'
-BOOT_API_ENDPOINT = '/api/boot'
-COUNT_API_ENDPOINT = '/api/count'
-BATCH_API_ENDPOINT = '/api/batch'
-BISECT_API_ENDPOINT = '/api/bisect'
+JOB_API_ENDPOINT = '/job'
+DEFCONFIG_API_ENDPOINT = '/defconfig'
+BOOT_API_ENDPOINT = '/boot'
+COUNT_API_ENDPOINT = '/count'
+BATCH_API_ENDPOINT = '/batch'
+BISECT_API_ENDPOINT = '/bisect'
# Default date range to show the results. The higher the value, the more
# data will need to be loaded from the server and parsed. It can take time
@@ -73,3 +73,4 @@ GOOGLE_ANALYTICS_ID = None
DEBUG = True
TESTING = DEBUG
+THREADED = False
diff --git a/app/server.py b/app/server.py
index 53bb097..f10c897 100755
--- a/app/server.py
+++ b/app/server.py
@@ -19,4 +19,4 @@ from dashboard import app
if __name__ == '__main__':
- app.run()
+ app.run(threaded=app.config['THREADED'], debug=app.debug)