Skip to content

Instantly share code, notes, and snippets.

View t-javcam's full-sized avatar

Javier Campanini t-javcam

  • Microsoft
  • Redmond, WA
View GitHub Profile
require "bundler/capistrano"
set :application, "blog_app"
set :user, "blogger"
set :scm, :git
set :repository, "https://github.com/YOUR_GITHUB_ACCOUNT/YOUR_REPO.git"
set :branch, "master"
set :use_sudo, true
worker_processes 2
timeout 30
listen "/tmp/unicorn.blog.sock"
root = "/home/blogger/apps/blog_app/current"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
#!/bin/sh
set -e
# Feel free to change any of the following variables for your app:
TIMEOUT=${TIMEOUT-60}
APP_ROOT=/home/blogger/apps/blog_app/current
PID=$APP_ROOT/tmp/pids/unicorn.pid
CMD="cd $APP_ROOT; bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"
AS_USER=blogger