user root admin;
worker_processes 1;
# pid of nginx master process
pid /var/run/nginx.pid;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| ** ____ _ ___ ___ _ _ | |
| ** | _ \ | | | \/ | | | (_) | |
| ** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _ | |
| ** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | | | |
| ** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | | | |
| ** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_| | |
| ** | |
| ** Quassel Theme | |
| ** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Configuration file for runtime kernel parameters. | |
| # See sysctl.conf(5) for more information. | |
| # See also http://www.nateware.com/linux-network-tuning-for-2013.html for | |
| # an explanation about some of these parameters, and instructions for | |
| # a few other tweaks outside this file. | |
| # | |
| # See also: https://gist.github.com/kgriffs/4027835 | |
| # | |
| # Assumes a beefy machine with lots of network bandwidth |
Fork from:http://eshlox.net/en/2012/09/11/nginx-uwsgi-virtualenv-and-django-ubuntu-1204/
First install required applications.
sudo apt-get install nginx uwsgi uwsgi-plugin-python python-virtualenv
Versions of packages that will be used:
Nginx 1.1.19.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: yourapp | |
| # Required-Start: nginx | |
| # Required-Stop: | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: The main django process | |
| # Description: The gunicorn process that receives HTTP requests | |
| # from nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server{ | |
| listen 80; | |
| # Uncomment for SSL | |
| #listen 443; | |
| server_name example.com www.example.com; | |
| # Uncomment for SSL | |
| #ssl on; | |
| #ssl_certificate /etc/ssl/mycert.crt; | |
| #ssl_certificate_key /etc/ssl/mycert.key; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // app/commands/DeployCommand.php | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| class DeployCommand extends Command | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ################################################################################## | |
| # 1 - Create the base container | |
| SUITE=squeeze | |
| RELEASE=$SUITE | |
| sudo lxc-create -n ${RELEASE}-base -t debian | |
| rootfs="/var/lib/lxc/${RELEASE}-base/rootfs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RSpec.configure do |conf| | |
| conf.module_path = File.join(fixture_path, 'modules') | |
| conf.manifest_dir = File.join(fixture_path, 'manifests') | |
| conf.hiera_config = File.join(fixture_path, 'hiera.yaml') | |
| end | |
| # Not sure this works for all types of https://github.com/rodjek/rspec-puppet tests. I think it works with host tests | |
| if ENV['PUPPET_DEBUG'] | |
| Puppet::Util::Log.level = :debug | |
| Puppet::Util::Log.newdestination(:console) |