1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 09:50:31 +01:00

make api dependent on onion server url

This commit is contained in:
Tim Daubenschütz 2015-06-24 17:54:32 +02:00
parent 296a1fd552
commit febfd7e56e
2 changed files with 2 additions and 2 deletions

View File

@ -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? Q: How can I use a local copy of SPOOL and Onion?
A: Easily by starting the your gulp process with the following command: 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 Reading list

View File

@ -55,8 +55,8 @@ var config = {
var constants = { var constants = {
BASE_URL: (function () { var baseUrl = process.env.ONION_BASE_URL || '/'; return baseUrl + (baseUrl.match(/\/$/) ? '' : '/'); })(), 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/', 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, DEBUG: !argv.production,
CREDENTIALS: 'ZGltaUBtYWlsaW5hdG9yLmNvbTowMDAwMDAwMDAw' // dimi@mailinator:0000000000 CREDENTIALS: 'ZGltaUBtYWlsaW5hdG9yLmNvbTowMDAwMDAwMDAw' // dimi@mailinator:0000000000
}; };