forked from KaedeTai/aio
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
joeangel edited this page Apr 24, 2017
·
12 revisions
http://stackoverflow.com/a/849960
rm -rf /usr/local/lib/node_modules
brew uninstall node
brew install node --without-npm
echo prefix=~/.npm-packages >> ~/.npmrc
curl -L https://www.npmjs.com/install.sh | sudo sh
Docroot is: /usr/local/var/www
The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that nginx can run without sudo.
nginx will load all files in /usr/local/etc/nginx/servers/.
if you don't want/need a background service you can just run:
sudo nginx
if you need stop:
sudo nginx -s stop
WARNING: brew services will fail when run under tmux.