Commit efc25ec
Changed files (2)
templates
default
templates/default/nginx_unicorn.erb
@@ -2,6 +2,10 @@ upstream unicorn {
server unix:<%= @shared_path %>/sockets/unicorn.sock fail_timeout=0;
}
+upstream puma {
+ server localhost:5000;
+}
+
client_max_body_size 4G;
server {
@@ -46,7 +50,7 @@ server {
proxy_set_header HOST $http_host;
proxy_set_header X-Url-Scheme $scheme;
proxy_redirect off;
- proxy_pass http://unicorn;
+ proxy_pass http://puma;
}
error_page 500 502 503 504 /500.html;
templates/default/unicorn.erb
@@ -18,7 +18,7 @@ APP_ROOT=<%= @current_path %>
PID=$APP_ROOT/tmp/pids/unicorn.pid
ENVIRONMENT=<%= @rails_env %>
#CMD="cd $APP_ROOT; bin/unicorn -E $ENVIRONMENT -D -c $APP_ROOT/config/unicorn.rb"
-CMD="cd $APP_ROOT; bin/foreman -e .env"
+CMD="cd $APP_ROOT; bin/foreman start -e .env.production"
action="$1"
set -u