Update env variables

This commit is contained in:
Christian Cueni 2020-04-30 06:49:18 +02:00
parent b14ed2fb5a
commit d10517b4f5
5 changed files with 12 additions and 9 deletions

View File

@ -4,5 +4,6 @@ const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, { module.exports = merge(prodEnv, {
NODE_ENV: '"development"', NODE_ENV: '"development"',
GOOGLE_ANALYTICS_ID: JSON.stringify(process.env.GOOGLE_ANALYTICS_ID) GOOGLE_ANALYTICS_ID: JSON.stringify(process.env.GOOGLE_ANALYTICS_ID),
HEP_URL: JSON.stringify(process.env.HEP_URL),
}) })

View File

@ -1,5 +1,6 @@
'use strict' 'use strict'
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
GOOGLE_ANALYTICS_ID: JSON.stringify(process.env.GOOGLE_ANALYTICS_ID) GOOGLE_ANALYTICS_ID: JSON.stringify(process.env.GOOGLE_ANALYTICS_ID),
HEP_URL: JSON.stringify(process.env.HEP_URL),
} }

View File

@ -1,6 +1,6 @@
import * as axios from 'axios' import * as axios from 'axios'
const hepBaseUrl = 'https://stage.hep-verlag.ch'; const hepBaseUrl = process.env.HEP_URL;
export function register(registrationData) { export function register(registrationData) {
return axios.post('/api/proxy/registration/', registrationData); return axios.post('/api/proxy/registration/', registrationData);

View File

@ -21,6 +21,9 @@ STUDENT_EDITION_DURATION = 4*365
TEACHER_KEY = 'teacher' TEACHER_KEY = 'teacher'
STUDENT_KEY = 'student' STUDENT_KEY = 'student'
MYSKILLBOX_TEACHER_EDITION_ISBN = "978-3-0355-1450-6"
MYSKILLBOX_STUDENT_EDITION_ISBN = "000-4-5678-9012-3"
class HepClientException(Exception): class HepClientException(Exception):
pass pass

View File

@ -379,11 +379,9 @@ TASKBASE_BASEURL = os.environ.get("TASKBASE_BASEURL")
ALLOW_BETA_LOGIN = True ALLOW_BETA_LOGIN = True
# HEP # HEP
HEP_ADMIN_USER = "myskillbox" HEP_URL = os.path.join("HEP_ADMIN_USER", "myskillbox")
HEP_ADMIN_PASSWORD = "dSgqCv7zhEMmSNrw" HEP_URL = os.path.join("HEP_ADMIN_PASSWORD", "dSgqCv7zhEMmSNrw")
HEP_URL = 'https://stage.hep-verlag.ch' HEP_URL = os.path.join("GRAPHQL_QUERIES_DIR", "https://stage.hep-verlag.ch")
MYSKILLBOX_TEACHER_EDITION_ISBN = "978-3-0355-1450-6"
MYSKILLBOX_STUDENT_EDITION_ISBN = "000-4-5678-9012-3"