Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
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
4 changes: 3 additions & 1 deletion lessons/11-productionish-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Now we're ready to create a production server with Express. Here's a
first attempt:

```js
// server.js
var express = require('express')
var path = require('path')
var compression = require('compression')
Expand All @@ -60,6 +61,8 @@ Now run:
```
NODE_ENV=production npm start
```
// For windows users:
// SET NODE_ENV=production npm start

Congratulations! You now have a production server for this app. After
clicking around, try navigating to `http://localhost:8080/package.json`.
Expand Down Expand Up @@ -156,4 +159,3 @@ the assets are being served with gzip compression.
---

[Next: Navigating](12-navigating.md)