This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#!/bin/sh | |
# Settings for a PHP Project | |
# Using: | |
# * PHP Lint | |
# *- PHP CS | |
# *- PHP Analyzer | |
# *- EmptyLines Checker | |
# *- Scrutinizer | |
# * PHPCPD |
# This is a step by step tutorial on how to run uwsgi in emperor mode, | |
# behind nginx on Fedora 20. I'll add to the tutorial as time goes on. | |
# SeLinux will likely be a pain (even in permissive mode), so please see my comment on how to fix it. | |
sudo yum upgrade | |
sudo yum install nano yum-utils gcc uwsgi-plugin-python3 nginx | |
yum-builddep python3-psycopg2 |
.configure \ | |
--prefix=/usr/share/nginx \ | |
--conf-path=/etc/nginx/nginx.conf \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--user=www-data \ | |
--group=www-data \ | |
--http-client-body-temp-path=/var/lib/nginx/body \ | |
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \ | |
--http-log-path=/var/log/nginx/access.log \ | |
--http-proxy-temp-path=/var/lib/nginx/proxy \ |
sudo yum install kmod-wl-`uname -r` |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: Django EC2 server | |
# Required-Start: networking | |
# Required-Stop: networking | |
# Default-Start: 3 5 | |
# Default-Stop: 0 1 2 6 | |
# Short-Description: Django server management script | |
# Description: Django server management script | |
### END INIT INFO |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer