1 | #!/usr/bin/env node
|
2 | 'use strict';
|
3 |
|
4 |
|
5 | const program = require('commander');
|
6 | program
|
7 | .option('-d, --dev', 'dev mode, *.js instead of *.min.js')
|
8 | .option('-H, --host [host]', 'set hostname')
|
9 | .option('--cors', 'allow CORS')
|
10 | .option('--https', 'enable https')
|
11 | .option('--force-https', 'force redirect to https')
|
12 | .option('-l, --livereload', 'livereload')
|
13 | .option('-m, --market [market]', 'specify market')
|
14 | .option('-p, --port [port]', 'set port. defaults to 3000', 3000)
|
15 | .option('-c, --config <path>', 'path to config file. Apps configuration will be used to add redirect rules when dev mode is enabeled. Server will redirect requsts, to build director, to source directory.')
|
16 | .parse(process.argv);
|
17 |
|
18 | require('../commands/server');
|