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')()
var config = require('../config')
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
}
if (!process.env.GOOGLE_CLIENT_ID) {
process.env.GOOGLE_CLIENT_ID = JSON.parse(config.dev.env.GOOGLE_CLIENT_ID)
}
Object.entries(config.dev.env).forEach(([key, value]) => {
if (!process.env[key]) {
process.env[key] = JSON.parse(value);
}
});
var opn = require('opn')
var path = require('path')

View File

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