spserver/lib/arguments.js

49 lines
1.2 KiB
JavaScript
Raw Normal View History

2015-02-02 09:52:31 +00:00
'use strict';
module.exports = {
config: {
alias: 'c',
describe: 'Location of the config file for the server [default: config.json]'
},
port: {
alias: 'p',
describe: 'The port server should bind to [default: 3001 or 80 in production mode]'
},
file: {
alias: 'f',
describe: 'Single static file the server should serve on all unknown requests'
},
bunyan: {
alias: 'b',
describe: 'Use bunyan instead of console to log to [default: true in production mode]'
},
template: {
alias: 't',
describe: 'Parse the static file as lodash template with all options/settings being passed to it'
},
name: {
alias: 'n',
describe: 'The name for this server for logging [default: spserver]'
},
serve: {
alias: 's',
describe: 'Folder path to serve static files from [default: public]'
},
prod: {
alias: 'P',
describe: 'Force run the server in production mode'
},
debug: {
alias: 'd',
describe: 'Force run the server in development mode'
2016-12-17 01:18:39 +00:00
},
ip: {
alias: 'i',
describe: 'IP server runs on [default: 0.0.0.0]'
},
2016-12-23 06:18:44 +00:00
rooturlpath: {
alias: 'r',
describe: 'Root URL path server is deployed on; will be removed from URL when resolving to files [default: /]'
},
2015-02-02 09:52:31 +00:00
};