Giter VIP home page Giter VIP logo

Comments (6)

explainer avatar explainer commented on May 4, 2024 15

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.

eflukx avatar eflukx commented on May 4, 2024 13

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.

ezkl avatar ezkl commented on May 4, 2024

There are a few different ways. See the last half of the README or the code that implements the functionality it describes:

from puma.

svetogor avatar svetogor commented on May 4, 2024

thanks for your help!

from puma.

svetogor avatar svetogor commented on May 4, 2024

btw, when I trying to start pumactl, it asked for -S parameter (path to "state file"). so, where can I find it?

from puma.

evanphx avatar evanphx commented on May 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.