Last active
December 19, 2015 08:19
-
-
Save jasdeepsingh/5924519 to your computer and use it in GitHub Desktop.
add-puma-gem
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.11' | |
gem 'puma' | |
# .. other beautiful glowing gems you might have in your project. |
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 | |
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | |
require 'rack/handler' | |
Rack::Handler::WEBrick = Rack::Handler.get(:puma) | |
APP_PATH = File.expand_path('../../config/application', __FILE__) | |
require File.expand_path('../../config/boot', __FILE__) | |
require 'rails/commands' |
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
=> Booting Puma | |
=> Rails 3.2.11 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
Puma 2.0.1 starting... | |
* Min threads: 0, max threads: 16 | |
* Environment: development | |
* Listening on tcp://0.0.0.0:3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment