different between unicorn / unicorn_rails
来源:互联网 发布:安卓 数据恢复 编辑:程序博客网 时间:2024/06/06 00:32
$ unicorn_rails -hUsage: unicorn_rails [ruby options] [unicorn_rails options] [rackup config file]Ruby options: -e, --eval LINE evaluate a LINE of code -d, --debug set debugging flags (set $DEBUG to true) -w, --warn turn warnings on for your script -I, --include PATH specify $LOAD_PATH (may be used more than once) -r, --require LIBRARY require the library, before executing your scriptunicorn_rails options: -o, --host HOST listen on HOST (default: 0.0.0.0) -p, --port PORT use PORT (default: 8080) -E, --env RAILS_ENV use RAILS_ENV for defaults (default: development) -D, --daemonize run daemonized in the background -l {HOST:PORT|PATH}, listen on HOST:PORT or PATH --listen this may be specified multiple times (default: 0.0.0.0:8080) -c, --config-file FILE Unicorn-specific config file --path PATH Runs Rails app mounted at a specific path. (default: /)Common options: -h, --help Show this message -v, --version Show version
$ unicorn -hUsage: unicorn [ruby options] [unicorn options] [rackup config file]Ruby options: -e, --eval LINE evaluate a LINE of code -d, --debug set debugging flags (set $DEBUG to true) -w, --warn turn warnings on for your script -I, --include PATH specify $LOAD_PATH (may be used more than once) -r, --require LIBRARY require the library, before executing your scriptunicorn options: -o, --host HOST listen on HOST (default: 0.0.0.0) -p, --port PORT use PORT (default: 8080) -E, --env RACK_ENV use RACK_ENV for defaults (default: development) -N do not load middleware implied by RACK_ENV --no-default-middleware -D, --daemonize run daemonized in the background -s, --server SERVER this flag only exists for compatibility -l {HOST:PORT|PATH}, listen on HOST:PORT or PATH --listen this may be specified multiple times (default: 0.0.0.0:8080) -c, --config-file FILE Unicorn-specific config fileCommon options: -h, --help Show this message -v, --version Show version
config/unicorn.conf.rb
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete # documentation. -rails_env = ENV['RAILS_ENV'] || 'staging'+rails_env = ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'staging'Add a comment to this line # Use at least one worker per core if you're on a dedicated server, # more will usually help for _short_ waits on databases/caches.-worker_processes rails_env == "production" ? 4 : 1+worker_processes (rails_env == "production" ? 4 : 1) # Since Unicorn is never exposed to outside clients, it does not need to # run on the standard HTTP port (80), there is no reason to start Unicorn
0 0
- different between unicorn / unicorn_rails
- different between BPL and DLL
- Android communication between different Component
- Different Between Cascade And Inverse
- Different between UDIMMs and RDIMMs
- different between forEach and map
- 个人收藏 different between CRM_ORDER_READ and CRM_ORDER_READ_OW
- Copy Field values between different records
- Different between 0 '0' and NULL
- Perl different between numeric and string
- [Maven]Different between Inheritance and Aggregation.
- the different between C and C++
- Different between "user", "eng" and "userdebug" build
- KVO:Different between "_xxx" & "self.xxx"
- Different between session.get() and session.load()
- 什么是Unicorn
- Dragging rows between two different Flex DataGrid controls
- What's different between INDEX and KEY in database
- 自定义,控件组(用于快速展示和修改指定的数据结构)
- Informix 和shell脚本的交互 dbaccess使用前初始化的一些问题
- java基础
- mysql fabric HA测试
- sitemesh3.0配置
- different between unicorn / unicorn_rails
- [Contiki系列论文之1]Contiki——为微传感器网络而生的轻量级的、灵活的操作系统
- c语言解析http请求表单内容,基于C语言的CGI开发
- 如何在eclipse jee中创建Maven project并且转换为Dynamic web project
- Android 添加页面切换动画, 避免冷启动
- POJ 1149 PIGS 最大流
- 自定义view-二,使用枚举
- DNS原理及其解析过程
- lightoj 1201 - A Perfect Murder 树形DP