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
# Gemfile | |
source 'http://rubygems.org' | |
# Framework | |
gem 'rails', '~> 3.0.9' | |
gem 'jquery-rails' | |
# Running | |
gem 'thin' |
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
/*! | |
Deck JS - deck.navigation | |
Copyright (c) 2012 Romain Champourlier | |
Dual licensed under the MIT license and GPL license. | |
https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt | |
https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt | |
*/ | |
/* | |
This module adds automatic control of the deck. |
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
# == God config file for delayed_job | |
# | |
# http://god.rubyforge.org/ | |
# | |
# Config mix from: | |
# - http://def-end.com/post/10440978748/god-config-for-delayed-job | |
# - https://groups.google.com/forum/?fromgroups#!topic/delayed_job/VtsFwH3ePiI | |
# - https://github.com/blog/229-dj-god (not so much, since I wanted to use the script) | |
# | |
# Modified by Romain Champourlier ([email protected]) |
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
# god | |
# | |
# Incomplete Upstart job for God | |
# | |
# TODO | |
# - Find a way to track god (through a pidfile maybe). Maybe this StackOverflow | |
# answer could help |
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
# This file has been generated from unicorn_template.rb.erb which is greatly inspired from: | |
# https://github.com/ricodigo/ricodigo-capistrano-recipes/blob/master/generators/unicorn.rb.erb | |
# | |
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete | |
# documentation. | |
# Local variables | |
old_pid = '<%= unicorn_pid + ".old" %>' | |
# Unicorn setup |
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 | |
# | |
# <%= "#{application}" %> <%= "#{application}" %> Rails application served through an Unicorn instance | |
# | |
# Author Romain Champourlier @ softr.li | |
# | |
# chkconfig: - <%= "#{unicorn_startorder} #{unicorn_killorder}" %> | |
# | |
# description: This a web application developed in Ruby On Rails | |
# which is served through an Unicorn instance. |
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
# Some changes made on https://github.com/ricodigo/ricodigo-capistrano-recipes/blob/master/generators/nginx.conf.erb | |
upstream <%= application %>_app_server { | |
server unix:<%= unicorn_socket %> fail_timeout=0; | |
} | |
# <%= application %> Server | |
server { | |
listen <%= app_port %>; | |
client_max_body_size 500M; |
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
check process unicorn | |
with pidfile <%= "#{unicorn_pid}" %> | |
start program = "<%= "#{startup_script_path}" %> start" | |
stop program = "<%= "#{startup_script_path}" %> stop" | |
group unicorn |
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
# Romain Champourlier © softr.li | |
# Inspired from many gist, recipes on github, tutorials... essentially: | |
# - https://gist.github.com/548927 | |
# - http://techbot.me/2010/08/deployment-recipes-deploying-monitoring-and-securing-your-rails-application-to-a-clean-ubuntu-10-04-install-using-nginx-and-unicorn/ | |
# - https://github.com/ricodigo/ricodigo-capistrano-recipes | |
# | |
# ONGOING WORK | |
# MIT License http://www.opensource.org/licenses/mit-license.php | |
# | |
# - Intended for Ubuntu 10.04.3 |
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
set :use_sudo, false | |
set :git_shallow_clone, 1 # tell git to clone only the latest revision and not the whole repository | |
set :keep_releases, 5 | |
set :application, "app" | |
set :repository, "[email protected]:app.git" | |
set :user, "deployer" | |
set :password, "deployer_password" |