Skip to content

Instantly share code, notes, and snippets.

@edvakf edvakf/A
Last active Apr 28, 2016

Embed
What would you like to do?
$ mkdir rack-test
$ cd rack-test
$ vi Gemfile
$ vi config.ru
$ vi unicorn_config.rb
$ bundle install --path=.bundle
$ bundle exec unicorn -c ./unicorn_config.rb
class Hello
def call(env)
[ 200,
{ 'Content-Type' => 'text/plain' },
[env.inspect]
]
end
end
run Hello.new
source 'https://rubygems.org'
gem 'rack'
gem 'unicorn'
worker_processes 1
listen 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.