Skip to content

Instantly share code, notes, and snippets.

@gabestein
Created July 4, 2013 19:24
Show Gist options
  • Save gabestein/5929760 to your computer and use it in GitHub Desktop.
Save gabestein/5929760 to your computer and use it in GitHub Desktop.
Padrino + Unicorn + Split
#!/usr/bin/env rackup
# encoding: utf-8
# This file can be used to start Padrino,
# just execute it from the command line.
require File.expand_path("../config/boot.rb", __FILE__)
run Rack::URLMap.new \
"/" => Padrino.application,
"/split" => Split::Dashboard.new
...
# Project requirements
gem 'rake'
gem 'foreman'
gem 'unicorn'
...
gem 'split', :require => 'split/dashboard'
...
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
#config/unicorn.rb
worker_processes 3
timeout 30
preload_app true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment