$ unicorn -c unicorn_config.rb -E development
Last active
November 16, 2015 07:19
-
-
Save tkuchiki/afce0ebf66762331a249 to your computer and use it in GitHub Desktop.
sample (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
#!/usr/bin/env ruby | |
require 'sinatra/base' | |
class MyApp < Sinatra::Base | |
get '/' do | |
"Hello world\n" | |
end | |
end |
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_relative './app.rb' | |
run MyApp |
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 | |
worker_processes 2 | |
preload_app true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment