Last active
August 29, 2015 14:15
-
-
Save lazybios/d814edd076c9aca0abe6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
如果需要指定Rails环境,例如production,可以输入 RAILS_ENV=production rake db:create db:migrate | |
# listen 80 default_server; | |
The argument default_server means this virtual host will answer requests on port 80 that don’t specifically match another virtual host’s listen statement. | |
# listen [::]:80 default_server ipv6only=on; | |
The second statement listens over IPv6 and behaves in the same way. | |
删除Gemfile中unicorn的注释 | |
bundle | |
注意unicron的权限 | |
working_directory "/vagrant" | |
pid "/vagrant/tmp/pids/unicorn.pid" | |
stderr_path "/vagrant/log/unicorn.log" | |
stdout_path "/vagrant/log/unicorn.log" | |
listen "/tmp/unicorn.todo.sock" | |
worker_processes 2 | |
timeout 30 | |
mysql安装后修改默认编码格式 | |
SHOW VARIABLES LIKE 'character%'; | |
unicorn -c config/unicorn.rb -D -E production | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment