Skip to content

Instantly share code, notes, and snippets.

@minichiello
Created February 28, 2013 20:04
Show Gist options
  • Save minichiello/5059658 to your computer and use it in GitHub Desktop.
Save minichiello/5059658 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'sinatra'
class Pumatra < Sinatra::Base
get '/' do
return 'It works!'
end
end
if __FILE__ == $0
Pumatra.run!
end
#!/usr/bin/env ruby
require './app'
Pumatra.run!
source "https://rubygems.org"
gem 'puma'
gem 'sinatra'
root = "#{Dir.getwd}"
activate_control_app "tcp://127.0.0.1:9293"
bind "unix:///tmp/puma.pumatra.sock"
pidfile "#{root}/tmp/pids/puma.pid"
rackup "#{root}/config.ru"
state_path "#{root}/tmp/pids/puma.state"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment