forked from udacity/reactnd-contacts-server2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ERR_CONNECTION_REFUSED for Chrome OS
When installed on Linux on Chrome OS, the server is not accessible in Google Chrome out of the box. To map ports automaticaly, host parameter needs to be passed to a express app.listen() call. Fixes udacity#4
- Loading branch information
1 parent
cad33c1
commit 6bbfa56
Showing
2 changed files
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
exports.port = process.env.PORT || 5001 | ||
exports.host = process.env.HOST || 'localhost' | ||
exports.origin = process.env.ORIGIN || `http://localhost:${exports.port}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters