Skip to content

Commit 239515b

Browse files
Merge pull request #155 from thomasmckay/port
added optional port override
2 parents 06cc30b + f9c74c3 commit 239515b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ module.exports = function (grunt) {
4444
docs: {
4545
options: {
4646
hostname: '0.0.0.0',
47+
port: grunt.option("port") || 8000,
4748
base: 'dist/docs',
4849
livereload: true,
4950
open: true

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ If you're interested in reading the docs right away, you can use special target,
8282
grunt ngdocs:view
8383
```
8484

85-
After executing this tasks you'll be able to access the documentation at [http://localhost:8000/](http://localhost:8000/).
85+
After executing this tasks you'll be able to access the documentation at [http://localhost:8000/](http://localhost:8000/). If a different port is desired, it may be specified on as an option:
86+
```shell
87+
grunt ngdocs:view --port:8002
88+
```
8689

8790
## Releasing
8891

0 commit comments

Comments
 (0)