Created
July 4, 2013 19:24
-
-
Save gabestein/5929760 to your computer and use it in GitHub Desktop.
Padrino + Unicorn + Split
This file contains 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
#!/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 |
This file contains 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
... | |
# Project requirements | |
gem 'rake' | |
gem 'foreman' | |
gem 'unicorn' | |
... | |
gem 'split', :require => 'split/dashboard' | |
... |
This file contains 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
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb |
This file contains 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
#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