Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
saitodisse committed Jul 5, 2015
1 parent 0d004b2 commit 6652a7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ azk shell -c'jest'
azk start
```

## FIXME: open webpack dev

http://ppp.dev.azk.io:[HOT_PORT]/

------------

# original

## Install
Expand Down Expand Up @@ -54,7 +48,7 @@ It's currently in a separate branch, [facebook/jest/tree/0.5.x](https://github.c
$ npm start
```

Go to [http://0.0.0.0:3001](http://0.0.0.0:3001) and see the magic happen.
Go to [http://ppp.azk.dev.io](http://ppp.azk.dev.io) and see the magic happen.

## Production

Expand Down
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ app.get('/*', function(req, res) {
});

var port = Number(process.env.HTTP_PORT || 3001);
var server_url = 'http://' + process.env.HOT_HOST_NAME;

app.listen(port, function () {
console.log('server running at 0.0.0.0:' + port + ', go refresh and see magic');
console.log('server running at ' + server_url + ', go refresh and see magic');
});

if (env.production === false) {
Expand Down Expand Up @@ -70,6 +72,6 @@ if (env.production === false) {
console.log(err);
}

console.log('webpack dev server listening on 0.0.0.0:3000');
console.log('webpack dev server listening on ' + server_url + ':3000');
});
}

0 comments on commit 6652a7b

Please sign in to comment.