Questions tagged [puma]

Puma is a simple, fast, threaded, and highly concurrent HTTP server for Ruby/Rack applications.

From the introduction:

Puma is a simple, fast, and highly concurrent HTTP 1.1 server for Ruby web applications. It can be used with any application that supports Rack, and is considered the replacement for Webrick and Mongrel. It was designed to be the go-to server for Rubinius, but also works well with JRuby and MRI. Puma is intended for use in both development and production environments.

Also see the GitHub project.

1218 questions
0
votes
0 answers

Request redo on timeout

I am having some kind of a bug, where after a 30 second timeout, the request seem to be received again by the server. the flow: the user enters several (or many) image urls to a text field which is sent to the server sources = "mysite.com/1.jpg…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
0
votes
0 answers

Ruby on Rails app using Vagrant and Chef on Nginx with HTPS -- Site doesn't load

I am working on Ruby on Rails app. I am using Vagrant and Chef. I am trying to configure Nginx as my web server to work on HTTPS. I am more than sure that I am missing something in my Nginx configuration file. Here are my Nginx configuration…
Moon
  • 33,439
  • 20
  • 81
  • 132
0
votes
3 answers

Getting Error while installing puma extension in Ruby on Rails on Windows

I was trying to install puma extension in Ruby on Rails and getting this error. C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb creating Makefile make generating puma_http11-i386-mingw32.def compiling…
shashank
  • 439
  • 1
  • 4
  • 17
0
votes
1 answer

Rails: assets unavailable in staging environment

I'm trying to setup a staging environment. I copied the environments/production.rb to create environments/staging.rb. I tested the staging environment locally and ran RAILS_ENV=staging rake assets:clean assets:precompile RAILS_ENV=staging rails…
Arnaud
  • 17,268
  • 9
  • 65
  • 83
0
votes
1 answer

Why does bundle exec puma fail with a Gemfile syntax error?

I'm trying to deploy a Rails 4 app with capistrano 3 to Ubuntu 12.04. I'm using the capistrano3-puma gem to handle configuring puma, but when it tries to bundle exec puma I get this error: Gemfile syntax error:…
Robin Clowers
  • 2,150
  • 18
  • 28
0
votes
0 answers

Make a request to the current server

I have a rails application that includes some ActiveResource services. I try to run a server with this application and make a request from one service to another. Let's say I have an action in service1_controller.rb: def action1 …
benams
  • 4,308
  • 9
  • 32
  • 74
0
votes
0 answers

Nitrous.io cannot start rails in production mode

I'm using a free Nitrous.IO box and the app runs fine in development mode but this is what i am getting in production mode: => Booting Puma …
franklinexpress
  • 1,149
  • 14
  • 44
0
votes
1 answer

How to use puma in production mode by set production environment?

I made a little Sinatra app. In my Gemfile add gem 'puma' in the production group group :production do gem 'puma' gem 'dm-postgres-adapter' end And I set production mode in config.ru set :environment, :production But after I run backup,…
mko
  • 21,334
  • 49
  • 130
  • 191
0
votes
1 answer

Puma fails to start on jRuby with error: The signal USR1 is in use by the JVM and will not work correctly on this platform

I am trying to deploy a simple rails app on my VPS, but I always get this error message, when capistrano tries to start puma: The signal USR1 is in use by the JVM and will not work correctly on this platform [deprecated]…
Allanon
  • 547
  • 4
  • 24
0
votes
0 answers

I can't get runit to work with chef and puma, it might be a runit issue but I'm not sure

Here is the runit script: #!/bin/sh cd <%= @options[:release_path] %> exec 2>&1 exec chpst -u <%= @options[:owner] %>:<%= @options[:group] %> <%= @options[:puma_command] %> -C config/puma.rb Here is the runit log script: #!/bin/sh exec chpst -u…
AntelopeSalad
  • 1,736
  • 1
  • 16
  • 27
0
votes
1 answer

PUMA, trying to stop server, Invalid Signal, number or name

Im trying to stop puma server with a script that i've found here --> script #!/usr/bin/env bash # Simple move this file into your Rails `script` folder. Also make sure you `chmod +x puma.sh`. # Please modify the CONSTANT variables to fit your…
Philip
  • 6,827
  • 13
  • 75
  • 104
0
votes
3 answers

no data with Puma and NewRelic ruby agent

I have Puma webserver, my app can't send data for newrelic. Only I see the data from Browser page but not for other activities like app server response or errors. This is my log: INFO : Reading configuration from config/newrelic.yml INFO :…
Israel Barba
  • 1,434
  • 20
  • 28
0
votes
1 answer

Pass the `Rails` constant into a config file?

I'm using the puma application server, and it has a config file at config/puma.rb: path = "/home/starkers/Documents/" + Rails.application.class.parent_name + "/tmp/puma/" threads 0,20 environment "production" daemonize true bind "unix://" +…
Starkers
  • 10,273
  • 21
  • 95
  • 158
0
votes
1 answer

Install puma on ubuntu (rubinius 2.1.1)

I am trying to install puma on ubuntu 12.04 with rubinius 2.1.1 and I am getting to following error: Building native extensions. This could take a while... ERROR: Error installing puma: ERROR: Failed to build gem native…
Meir
  • 91
  • 2
  • 6
0
votes
1 answer

Return to the console but keep a rails server active

On my server, I can start my rails application server (puma) and give my application a UNIX socket by cd'ing into the application's root directory and issuing the following command: bundle exec puma -e production -b…
Starkers
  • 10,273
  • 21
  • 95
  • 158