Verified Commit 058f4b8f authored by Aral Balkan's avatar Aral Balkan
Browse files

Add note on Linux privileged ports when testing via Node binary

parent 91c658e4
......@@ -199,10 +199,20 @@ git clone
cd app
# Run the app once (so that it can get your Node.js binary
# permission to bind to ports < 1024 on Linux ­– otherwise
# the tests will fail.)
bin/site.js test/site
# You should be able to see the site at https://localhost
# now. Press Ctrl+C to stop the server.
# Run unit tests.
npm test
__Note:__ If you upgrade your Node.js binary, please run `bin/site.js` again before running the tests (or using Site.js as a module in your own app) so that it can get permissions for your Node.js binary to bind to ports < 1024. Otherwise, it will fail with `Error: listen EACCES: permission denied`.
### Install as global Node.js module
After you install the source and run tests:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment