Linux command
puma 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start Puma server
puma
Start with config
puma -C [config/puma.rb]
Start on specific port
puma -p [3000]
Start with workers
puma -w [4]
Start in daemon mode
puma -d
说明
Puma is a fast, concurrent Ruby/Rack web server. It uses threads and optional workers for parallelism, making it suitable for production Rails deployments.
参数
- -p, --port _port_
- Listen port.
- -b, --bind _uri_
- Bind URI.
- -C, --config _file_
- Configuration file.
- -w, --workers _n_
- Number of workers.
- -t, --threads _min:max_
- Thread pool size.
- -d, --daemon
- Daemonize process.
- -e, --environment _env_
- Environment (development, production).
FAQ
What is the puma command used for?
Puma is a fast, concurrent Ruby/Rack web server. It uses threads and optional workers for parallelism, making it suitable for production Rails deployments.
How do I run a basic puma example?
Run `puma` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --port _port_ do in puma?
Listen port.