Questions tagged [puma-dev]

23 questions
8
votes
1 answer

Address already in use for puma-dev

Problem Whenever I try to run bundle exec puma -C config/puma.rb --port 5000 I keep getting bundler: failed to load command: puma (/Users/ogirginc/.asdf/installs/ruby/2.7.2/bin/puma) Errno::EADDRINUSE: Address already in use - bind(2) for "0.0.0.0"…
ogirginc
  • 4,948
  • 3
  • 31
  • 45
3
votes
1 answer

Puma not logging when running daemon

When running Puma as a daemon (i.e. using the -d flag), Puma does not seem to log to the location specified by stdout_redirect. Has anyone seen this behavior before and if so, found a workaround to generate the proper log files for Puma…
rubyWorker
  • 33
  • 3
3
votes
4 answers

How to use ngrok with puma-dev rails server

My rails app is spin up using puma-dev on Ubuntu. I'm using puma-dev command to start my app (in foreground) and then access the rails app using https://app.test:9283. As the puma-dev is running in the foreground I have to use the port 9283 to…
3
votes
1 answer

Unable to boot puma-dev: "Unexpected Exit"

puma-dev is unable to boot and fails with the error: unexpected exit: bash: line 23: exec: puma: not found puma-dev is not seeing that I have the puma gem installed. It appears to get thrown off by the multiple ruby versions. I have a…
Tom Rossi
  • 11,604
  • 5
  • 65
  • 96
2
votes
2 answers

How does a Rails app set its Environment (Dev., Staging, etc.)?

Having a very confusing issue My local app is running in its staging environment. I use puma-dev for the server and when I tail it by running tail -f ~/Library/Logs/puma-dev.log it says that the environment is development, but when I log out to my…
Rockwell Rice
  • 3,376
  • 5
  • 33
  • 61
1
vote
0 answers

puma-dev creates another socket and ignores rails server

I'm trying to setup puma-dev for some subdomains locally, I'm on ubuntu so I've followed the steps on github to have it run in the foreground, created a symlink on ~/.puma-dev to my rails app. What's happening is when I try to access my subdomain, a…
Matheus Mendes
  • 155
  • 2
  • 14
1
vote
1 answer

In Rails, how do you have multiple versions of puma-dev running on different versions of Ruby via ruby-install?

I have many different Rails apps using puma-dev. I have started a new Rails app using Ruby 3+ which works great on localhost, however when I visit the site via puma-dev I get an error. This is because I think puma-dev is using the wrong version of…
CafeHey
  • 5,699
  • 19
  • 82
  • 145
1
vote
0 answers

Puma. Is it possible to get current running requests

We need to see current active requests in puma web server. Not in a queue. Is it possible? Could it be possible to develop it manually? Example: puma config: 1 worker / 1 thread get /test1 get /active_requests # returns /test1 get /test2 test2 is…
gayavat
  • 18,910
  • 11
  • 45
  • 55
1
vote
1 answer

How can I configure puma to only allow strong TLS ciphers?

I have a Ruby on Rails application that runs under puma v4.3.8. It currently allows a number of weaker TLS ciphers. The application has a config/puma.rb file. I've tried to use ssl_cipher_filter to enforce stronger ciphers. From what I can see the…
Mark
  • 37
  • 4
1
vote
1 answer

Puma does not use the correct Gemset when loaded with puma-dev

While running puma-dev I got the following error when trying to visit my Rails app: unexpected exit: from /not/the/correct/ruby/path/ruby_executable_hooks:24:in `
' How do you tell puma-dev to use the correct path for loading gems with…
Tom Rossi
  • 11,604
  • 5
  • 65
  • 96
1
vote
1 answer

How can I use puma-dev in a local docker environment?

I’m working with a legacy Rails application that requires the puma-dev tool in order to develop locally. The app needs to be able to resolve domains like client-a.myapp.test to localhost:3000. The problem is this app is so old that me and my team…
1
vote
1 answer

puma workers vs separate ec2 instances

I am coming from Java/Tomcat stack and total newbie to RoR stack. I am trying to understand some of the concepts around puma configuration. I have read this and this but I am still unclear on workers terminology. I understand that workers result in…
itwarilal
  • 1,314
  • 1
  • 10
  • 17
0
votes
0 answers

Rails app with ngrok: Unable to route to POST /api/callbacks/payfast_notifications despite route being defined

I'm encountering an issue with my Rails application where a route I've defined is not being recognized when accessed. Here are the details: The Setup I'm using puma-dev to run my Rails development environment. The app runs on the standard HTTP and…
Michael T
  • 756
  • 3
  • 13
  • 31
0
votes
1 answer

puma-dev do not work with error message rbenv: puma: command not found

When try to open site get error message unexpected exit: Check dev logs tail -f log/development.log: rbenv: puma: command not found The `puma' command exists in these Ruby versions: 2.4.0 While search for answer found that the most common problem…
150Years
  • 101
  • 1
  • 7
0
votes
1 answer

Ruby puma-dev using wrong version of ruby

I've been debugging this for about a week now with no progress so I thought I'd take it to here. I've been doing research and staring at other StackOverflow solutions for this for hours and haven't made any progress. Currently running puma-dev on…
Skyler
  • 33
  • 7
1
2