Skip to content

Instantly share code, notes, and snippets.

View swordray's full-sized avatar

Jianqiu Xiao swordray

View GitHub Profile
@swordray
swordray / nginx_rails.conf
Last active March 20, 2016 08:00
Nginx conf for Rails app
upstream project {
server 127.0.0.1:4000;
server unix://project/tmp/puma/puma.sock;
}
server {
listen 80;
server_name _;
access_log /var/log/nginx/project.access.log;
error_log /var/log/nginx/project.error.log;