Skip to content

Commit

Permalink
Fix port for app.html (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 authored Nov 1, 2016
1 parent f2cb746 commit e13af49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
<script>
{
const script = document.createElement('script');
const port = process.env.PORT || 3000;
script.src = (process.env.HOT)
? `http://localhost:3000/dist/bundle.js`
? 'http://localhost:' + port + '/dist/bundle.js'
: './bundle.js';
document.write(script.outerHTML);
}
Expand Down

0 comments on commit e13af49

Please sign in to comment.