Skip to content

Instantly share code, notes, and snippets.

@dracos
Last active September 1, 2017 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dracos/6307176 to your computer and use it in GitHub Desktop.
Save dracos/6307176 to your computer and use it in GitHub Desktop.
Stopping the daemon fixmystreet app, and starting it in debug mode, printing everything to console
$ sudo /etc/init.d/fixmystreet stop
$ sudo /etc/init.d/nginx stop
$ sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
$ sudo su - fms
$ cd /var/www/fixmystreet/fixmystreet
$ script/server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment