Skip to content

Commit

Permalink
feat: Listen for connections on the specified port (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierodo authored and tmcw committed May 29, 2018
1 parent 26226ca commit 3d54f90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/big-presentation-serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var ip = require('ip');
var getPort = require('get-port');
var ecstatic = require('ecstatic');

getPort().then(function(port) {
getPort({port: process.env.PORT}).then(function(port) {
http.createServer(ecstatic({ root: process.cwd() })).listen(port);

var message = 'Serving!\n\n';
Expand Down
3 changes: 2 additions & 1 deletion docs/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ When you install it with npm or yarn, you get these four utilities:
files in the current directory, or specify a directory name to create
a new directory and put the files in that.
* `big-presentation-serve`
* Serves up your presentation.
* Serves up your presentation on an arbitrary unused port
* To serve your presentation on a specific port use the environment variable **PORT** (ex : `PORT=3001 big-presentation-serve`)
* `big-presentation-offline`
* Creates an `index.offline.html` file with everything that can be included,
included inline in the HTML, so you don't have to trust wifi
Expand Down

0 comments on commit 3d54f90

Please sign in to comment.