Fixed GitHub client ID

This commit is contained in:
Benoit Schweblin 2018-01-04 23:10:49 +00:00
parent 1b79c739d3
commit 2d75c48332
2 changed files with 10 additions and 12 deletions

View File

@ -1,12 +1,11 @@
require('./check-versions')() require('./check-versions')()
var config = require('../config') var config = require('../config')
if (!process.env.NODE_ENV) { Object.entries(config.dev.env).forEach(([key, value]) => {
process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) if (!process.env[key]) {
} process.env[key] = JSON.parse(value);
if (!process.env.GOOGLE_CLIENT_ID) {
process.env.GOOGLE_CLIENT_ID = JSON.parse(config.dev.env.GOOGLE_CLIENT_ID)
} }
});
var opn = require('opn') var opn = require('opn')
var path = require('path') var path = require('path')

View File

@ -1,11 +1,10 @@
const env = require('./config/prod.env'); const env = require('./config/prod.env');
if (!process.env.NODE_ENV) { Object.entries(env).forEach(([key, value]) => {
process.env.NODE_ENV = JSON.parse(env.NODE_ENV); if (!process.env[key]) {
} process.env[key] = JSON.parse(value);
if (!process.env.GOOGLE_CLIENT_ID) {
process.env.GOOGLE_CLIENT_ID = JSON.parse(env.GOOGLE_CLIENT_ID);
} }
});
const http = require('http'); const http = require('http');
const https = require('https'); const https = require('https');