diff options
author | Gaurav Sharma <gaurav2728@gmail.com> | 2016-01-20 00:50:47 +0530 |
---|---|---|
committer | Gaurav Sharma <gaurav2728@gmail.com> | 2016-01-20 00:50:47 +0530 |
commit | 147461919645b6cc215e18bdd7d4103e92998e64 (patch) | |
tree | 8d94b583c6a9b65f27373ac91226378cbe12408e /guides/source/command_line.md | |
parent | 1347f08521881efacfc42a7284073272affc1d1e (diff) | |
download | rails-147461919645b6cc215e18bdd7d4103e92998e64.tar.gz rails-147461919645b6cc215e18bdd7d4103e92998e64.tar.bz2 rails-147461919645b6cc215e18bdd7d4103e92998e64.zip |
[ci skip] update guide for Puma web server instead of Webrick
Rails 5.0 default server puma web server. following commit - https://github.com/rails/rails/commit/ae48ea69
Diffstat (limited to 'guides/source/command_line.md')
-rw-r--r-- | guides/source/command_line.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 5240b5f343..d31b3084e5 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -55,20 +55,21 @@ Rails will set you up with what seems like a huge amount of stuff for such a tin ### `rails server` -The `rails server` command launches a small web server named WEBrick which comes bundled with Ruby. You'll use this any time you want to access your application through a web browser. +The `rails server` command launches a web server named Puma which comes bundled with Rails. You'll use this any time you want to access your application through a web browser. With no further work, `rails server` will run our new shiny Rails app: ```bash $ cd commandsapp $ bin/rails server -=> Booting WEBrick -=> Rails 5.0.0 application starting in development on http://localhost:3000 +=> Booting Puma +=> Rails 5.0.0 application starting in development on http://0.0.0.0:3000 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server -[2013-08-07 02:00:01] INFO WEBrick 1.3.1 -[2013-08-07 02:00:01] INFO ruby 2.2.2 (2015-06-27) [x86_64-darwin11.2.0] -[2013-08-07 02:00:01] INFO WEBrick::HTTPServer#start: pid=69680 port=3000 +Puma 2.15.3 starting... +* Min threads: 0, max threads: 16 +* Environment: development +* Listening on tcp://localhost:3000 ``` With just three commands we whipped up a Rails server listening on port 3000. Go to your browser and open [http://localhost:3000](http://localhost:3000), you will see a basic Rails app running. @@ -181,7 +182,7 @@ Fire up your server using `rails server`. ```bash $ bin/rails server -=> Booting WEBrick... +=> Booting Puma... ``` The URL will be [http://localhost:3000/greetings/hello](http://localhost:3000/greetings/hello). |