Steps with explanations to set up a server using:
- Virtualenv
- Virtualenvwrapper
- Django
- Gunicorn
| #!/bin/sh | |
| IPT="/sbin/iptables" #Iptable's path | |
| #Network interfaces : | |
| interface=eth0 # Internet | |
| start() { | |
| ### DELETE ALL ENTRIES ### | |
| $IPT -F |
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: scriptname | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start daemon at boot time | |
| # Description: Enable service provided by daemon. |