From febfd7e56eded7f531b5285a0c154470bea62556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Wed, 24 Jun 2015 17:54:32 +0200 Subject: [PATCH] make api dependent on onion server url --- README.md | 2 +- gulpfile.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ae4fac9..72596366 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ A: Use `npm dedupe` to remove duplicates in npm. This might fix that you're not Q: How can I use a local copy of SPOOL and Onion? A: Easily by starting the your gulp process with the following command: ``` -ONION_BASE_URL='/beta/' ONION_API_ENDPOINT='http://localhost:8000/api' gulp serve +ONION_BASE_URL='/' ONION_API_ENDPOINT='http://localhost:8000/api' gulp serve ``` Reading list diff --git a/gulpfile.js b/gulpfile.js index fe7e75a8..1e4e78ad 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -55,8 +55,8 @@ var config = { var constants = { BASE_URL: (function () { var baseUrl = process.env.ONION_BASE_URL || '/'; return baseUrl + (baseUrl.match(/\/$/) ? '' : '/'); })(), - API_ENDPOINT: process.env.ONION_API_ENDPOINT || 'http://staging.ascribe.io/api/', SERVER_URL: process.env.ONION_SERVER_URL || 'http://staging.ascribe.io/', + API_ENDPOINT: process.env.ONION_SERVER_URL + 'api/' || 'http://staging.ascribe.io/api/', DEBUG: !argv.production, CREDENTIALS: 'ZGltaUBtYWlsaW5hdG9yLmNvbTowMDAwMDAwMDAw' // dimi@mailinator:0000000000 };