Skip to content

Commit

Permalink
Docs: Fix instructions
Browse files Browse the repository at this point in the history
Rel #360
  • Loading branch information
molant committed Oct 8, 2019
1 parent 70e8bb2 commit 92fc43c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ repo](https://github.com/webhintio/hint).

## Getting started

_**Note:**_ Our builder uses async arrow functions as well as other ES2017
features so please ensure you are using Node.js v8.x or higher.

Clone the project:

``` bash
Expand All @@ -25,24 +22,23 @@ Install dependencies:
npm install
```

Fetch remote content (e.g. documentation)

```bash
npm run update-site
```

Build the site:

```bash
npm run build
```

Run server:
The command above will pull all the documentation and generate all the required
assets. It might take a bit so please be patient.

Run the site:

```bash
npm start
```

This will start a local web server in port 4000.

To know more about the internals of the site please read the
[server](architecture/server.md) documentation.

Expand Down
6 changes: 3 additions & 3 deletions src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ const configureRoutes = (app) => {
};

const configureFallbacks = (app) => {
if (production) {
app.use('/', express.static(path.join(rootPath, 'dist')));
} else {
app.use('/', express.static(path.join(rootPath, 'dist')));

if (!production) {
app.use('/', express.static(path.join(hexoDir, theme, 'source')));
}
};
Expand Down

0 comments on commit 92fc43c

Please sign in to comment.