Run Ruby On Rails 5 Application With Puma and foreman (UPDATED)

Run Ruby On Rails 5 Application With Puma and foreman (UPDATED)

Hello Friends, First thing First I wanna Congratulations to all of Users who work with Puma, because on Rails 5, Puma Gem by default add in Gemfile, now you don't need to install gem Puma, But you need to something change from Rails 3, Rails 4. In Rails 5 Puma is working same like old version, You Just go to the Old Link Run Ruby On Rails 5 Application With Puma

3. Third Step, Create a Procfile file in your application

Note: Type Procfile without any file name. and also remember don't forgot to add P in Caps.

4. Add this code in Procfile

puma: bundle exec puma -p 5000 -q   (in Old version it was 3000 port)

5. That's now go to your terminal and just find your application and type

foreman start

That's it Your application will work

14:33:18 puma.1 | started with pid 3570
14:33:24 puma.1 | Puma starting in single mode...
14:33:24 puma.1 | * Version 2.6.0, codename: Pantsuit Party
14:33:24 puma.1 | * Min threads: 0, max threads: 16
14:33:24 puma.1 | * Environment: development
14:33:51 puma.1 | * Listening on tcp://0.0.0.0:5000
14:33:51 puma.1 | Use Ctrl-C to stop

Now Open localhost:5000 and check your Application.