Skip to content

Commit

Permalink
run https server (#322)
Browse files Browse the repository at this point in the history
* https server 

how to use https server: 
```
HTTPS=true CONTENTBASE=./ roadhog server
```sh

* contentBase has a defaultValue  './'

* contentBase defaultValue is absolute path (webpack's official recommendation)

* CONTENTBASE -> CONTENT_BASE
  • Loading branch information
gaokai authored and sorrycc committed Apr 13, 2018
1 parent a73589a commit 083fc91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/af-webpack/src/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export default function dev({
overlay: false,
host: HOST,
proxy,
https: process.env.HTTPS,
contentBase: process.env.CONTENT_BASE,
before(app) {
if (extraMiddlewares) {
extraMiddlewares.forEach(middleware => {
Expand Down

0 comments on commit 083fc91

Please sign in to comment.