Created
November 14, 2008 14:04
-
-
Save foca/24911 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
require "rubygems" | |
require "integrity" | |
require "sinatra" | |
# Load integrity's configuration. | |
Integrity.config = File.expand_path("./config.yml") | |
Sinatra::Application.default_options.merge!( | |
:run => false, | |
:port => Integrity.config[:port], | |
:env => :development | |
) | |
require Integrity.root / "app" | |
run Sinatra.application | |
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
--- | |
servers: 2 | |
environment: production | |
chdir: /var/www/integrity | |
address: 127.0.0.1 | |
user: deploy | |
group: users | |
port: 6798 | |
pid: thin.pid | |
rackup: config.ru | |
log: log/thin.log | |
max_conns: 1024 | |
timeout: 30 | |
max_persistent_conns: 512 | |
daemonize: true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment