Move subdomain config

This commit is contained in:
Brandon Keepers 2017-04-08 17:16:17 -05:00
parent dc78001254
commit dba5ba8fbb
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ program
process.exit(1);
}
}, process.env.PRIVATE_KEY)
.option('-t, --tunnel <subdomain>', 'Expose your local bot to the internet', process.env.NODE_ENV != 'production')
.option('-t, --tunnel <subdomain>', 'Expose your local bot to the internet', process.env.SUBDOMAIN || process.env.NODE_ENV != 'production')
.parse(process.argv);
if(!program.integration) {
@ -49,7 +49,7 @@ function setupTunnel() {
const localtunnel = require('localtunnel');
const subdomain = typeof program.tunnel == 'string' ?
program.tunnel :
process.env.SUBDOMAIN || require('os').userInfo().username;
require('os').userInfo().username;
const tunnel = localtunnel(program.port, {subdomain}, function (err, tunnel) {
if (err) {