Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ module.exports = new Command('serve')
.description('start a local server for your static assets')
.option('-p, --port <port>', 'the port on which to listen (default: 5000)', 5000)
.option('-o, --host <host>', 'the host on which to listen (default: localhost)', 'localhost')
.option('-l, --live', 'enable live reload (default: false)', false)
.action(function(options) {
var config = Config.load(options);

superstatic({
debug: true,
port: options.port,
host: options.host,
live: options.live,
config: config.data.hosting
}).listen();

Expand Down