Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

nginx configuration adjustment.

  • Loading branch information...
commit b4eeb131f9e27ba7f176432cdcdb9a0ac45247e2 1 parent f4d98c0
@pwnall authored
Showing with 5 additions and 3 deletions.
  1. +2 −0  CHANGELOG
  2. +3 −3 lib/rails_pwnerer/app/nginx_config.rb
View
2  CHANGELOG
@@ -1,3 +1,5 @@
+v0.7.5. One more nginx configuration adjustment.
+
v0.7.4. Better nginx configuration.
v0.7.3. Another bugfix for HTTP / HTTPS mixed configurations.
View
6 lib/rails_pwnerer/app/nginx_config.rb
@@ -22,11 +22,11 @@ def config_nginx(app_name, instance_name)
app_name + '.' + instance_name)
File.open(nginx_config, 'w') do |f|
# link to the frontends
- f << " upstream #{app_name}_#{instance_name} {\n"
+ f << "upstream #{app_name}_#{instance_name} {\n"
RailsPwnerer::Config.app_frontends(app_name, instance_name).times do |instance|
- f << " server 127.0.0.1:#{first_port + instance};\n"
+ f << " server 127.0.0.1:#{first_port + instance};\n"
end
- f << " }\n\n"
+ f << "}\n\n"
# server configuration -- big and ugly
f << <<NGINX_CONFIG
Please sign in to comment.
Something went wrong with that request. Please try again.