Skip to content

Commit 8a013be

Browse files
authored
Merge pull request mendix#6509 from lmeijvogel/simplify-starting-devserver
Add npm script to start development server and update README.
2 parents 261c291 + 049d61e commit 8a013be

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ To clone the repo please keep in mind:
3232

3333
To run a local version of the site:
3434

35-
1. Run cmd: `./node_modules/.bin/hugo server --environment development`
35+
1. Run one of the following commands:
3636

37-
The path syntax prefacing `hugo` may be different based on your operating system and terminal you use.
37+
* `npm run build`
38+
* `./node_modules/.bin/hugo server --environment development` – in this case, you can use [different parameters](https://gohugo.io/commands/hugo_server/) to build the site in different ways—for example, build a copy of the production site and save it locally.
39+
40+
The path syntax prefacing `hugo` may be different based on your operating system and terminal you use.
3841

3942
Once the site is built you will see a table indicating how many pages have been created. You will need to wait until the server is set up before you can see the site.
4043

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Node files needed by Docsy",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"start": "hugo server --environment development",
8+
"build": "hugo server --environment development"
89
},
910
"repository": {
1011
"type": "git",

0 commit comments

Comments
 (0)