Comments (6)
I have been working on a rails app with puma, and found some documentation which defined this command to start puma:
bundle exec puma -e production -p 9292 --pidfile tmp/pids/puma.pid -d
Is this correct? If not, can you point me to a shell script which can start puma as a daemon (in production)?
from puma.
Anyone still looking for the -d
daemonize option, you may stop looking for it; it has been removed from newer versions. See #1983
from puma.
There are a few different ways. See the last half of the README or the code that implements the functionality it describes:
- https://github.com/puma/puma/blob/master/bin/pumactl
- https://github.com/puma/puma/blob/master/lib/puma/control_cli.rb
- https://github.com/puma/puma/blob/master/lib/puma/app/status.rb
from puma.
thanks for your help!
from puma.
btw, when I trying to start pumactl, it asked for -S parameter (path to "state file"). so, where can I find it?
from puma.
You pass -S any_path
to puma itself. any_path
is just some location on the filesystem that you also pass to pumactl. There is actually no mode to start in the background though, and this is on purpose. If you wish to run this in the background in production, it should be done under a supervisor process like monit, god, bluepill, etc. In development, you can just do puma ... &
or use run it in the foreground of a terminal.
from puma.
Related Issues (20)
- Windows: puma_http11.so breaking when ruby folder is relocated HOT 16
- Reactor suddenly throws NoMethodError but can't find reason HOT 6
- `--idle-timeout` should not shut down entire cluster if any single worker is idle HOT 1
- Puma responds with a 501 Server Error when a client sends invalid HTTP methods HOT 6
- Listen for HTTP and HTTPS on the same port, redirecting clients to HTTPS for easier local development HOT 4
- require puma/dsl not on the top HOT 2
- Phased restart & symlinks doesn't change destination folder? HOT 3
- Allow alternative schemes in Binder
- Support Ruby 3.3's `Process.warmup` before fork HOT 14
- Error responses written twice HOT 1
- Specify multiple licences in the gemspec? HOT 17
- Puma cluster not reaping child processes when PID is 1 with Puma 6.4.1 HOT 18
- High latency on puma HOT 2
- Puma and Puma Dev Linux issue
- Phased-Restart Causes Action Cable Connection Loss on Rails App Restart HOT 3
- Add a hook for "before shutdown" HOT 6
- Systemd watchdog kills puma during hot restart. HOT 4
- NoMethodError: undefined method `release' for Rack:Module error at "rails s" initialization time HOT 5
- Staging environment, request.ENV['HTTP_HOST'] displays 2 urls when it should be a single url HOT 1
- HttpParserError raised when body (chunk) exceeds 4096 bytes does not end with "\r\n" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puma.