有梦最美,希望相随

thin 启动rails

使用thin 启动 rails 项目


1.生成配置文件

thin config -C config_file_path -c app_dir --servers 5 -e production

--server 表示启动的server数量

-e 表示RAILS_ENV (development,test,production)


chdir: app_dir

environment: production

address: 0.0.0.0

port: 3000

timeout: 30

log: log/thin.log

pid: tmp/pids/thin.pid

max_conns: 1024

max_persistent_conns: 512

require: []

wait: 30

servers: 5

daemonize: true


2.启动thin


thin -C config_file_path start

start|restart|stop 分别表示对thin server 的启动,重启和停止


标签: ruby
评论
< >
© 有梦最美,希望相随 | Powered by LOFTER