mediawiki-extensions-Visual.../api/runserver.sh
Gabriel Wicke a4c5d43ff7 Fix an external link regression, and add server shell wrapper and setup docs
Change-Id: I9a4f7690e98313d003a2fec35324ed70556e6461
2012-05-23 16:25:42 +02:00

7 lines
210 B
Bash
Executable file

#!/bin/sh
# redirect port 80 to unprivileged port 8000
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000
# run the server as non-privileged user
nohup sudo -u nobody node server.js &