Skip to content

Instantly share code, notes, and snippets.

View johnrlive's full-sized avatar

John Rodriguez johnrlive

  • NY
View GitHub Profile

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

#!/bin/bash
NAME="hello_app" # Name of the application
DJANGODIR=/webapps/hello_django/hello # Django project directory
SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket
USER=hello # the user to run as
GROUP=webapps # the group to run as
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use
DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name
require 'mina/git'
require 'mina/rbenv'
require 'mina-contrib/rbenv'
require 'mina-contrib/config'
require 'mina-contrib/bundler'
require 'mina-contrib/safety-check'
require 'mina-contrib/nginx'
require 'mina-contrib/puma'
set :term_mode, :pretty
@johnrlive
johnrlive / deploy.rb
Created June 12, 2013 03:17 — forked from dariocravero/deploy.rb
deployment script using "mina -f config/deploy.rb"
require 'mina/git'
require 'mina/rbenv'
require 'mina-contrib/rbenv'
require 'mina-contrib/config'
require 'mina-contrib/bundler'
require 'mina-contrib/safety-check'
require 'mina-contrib/nginx'
require 'mina-contrib/puma'
set :term_mode, :pretty