#89 ✓resolved
Tim Dysinger

patch for borked-untested-but-released-1.1-nginx

Reported by Tim Dysinger | August 23rd, 2007 @ 03:28 PM

Comments and changes to this ticket

  • Tim Dysinger

    Tim Dysinger August 23rd, 2007 @ 03:30 PM

    Dude,

    No offense. I know I don't know you but --- WTF is up with 1.1 release of nginx_config_generator. Nobody even attempted to try the erb template nor the example.yml with the changes.

    I've attached a patch to make it work again.

    -Tim

  • Tim Dysinger

    Tim Dysinger August 23rd, 2007 @ 03:38 PM

    1 - The ruby script was not loading the config yml file at all.

    2 - I indented the blocks on the ERB so I could tell what was wrong. It was completely missing an <% end %> and the bottom.

    3 - The example had a no_www example but the server_name wasn't set so it would blow up. So I corrected it and added another example with the always_www.

  • Chris Wanstrath

    Chris Wanstrath August 23rd, 2007 @ 04:21 PM

    • State changed from “new” to “open”

    1.2 was pushed this morning, fixing the erb bug. Are you still experiencing problems?

  • Tim Dysinger

    Tim Dysinger August 23rd, 2007 @ 05:46 PM

    duece:~ tim$ sudo gem update

    Password:

    Updating installed gems...

    Need to update 8 gems from http://gems.rubyforge.org

    ........

    complete

    Attempting remote update of nginx_config_generator

    Successfully installed nginx_config_generator-1.2

    Installing ri documentation for nginx_config_generator-1.2...

    Installing RDoc documentation for nginx_config_generator-1.2...

    Gems: [nginx_config_generator] updated

    duece:~ tim$ sudo gem clean

    Cleaning up installed gems...

    Attempting uninstall on nginx_config_generator-1.1

    Successfully uninstalled nginx_config_generator version 1.1

    Clean Up Complete

    duece:~ tim$ generate_nginx_config --example > config.yml

    duece:~ tim$ generate_nginx_config

    Usage: generate_nginx_config [config file] [out file]

    duece:~ tim$ generate_nginx_config config.yml

    (erb):56: undefined local variable or method `config' for main:Object (NameError)

    duece:~ tim$

  • Tim Dysinger

    Tim Dysinger August 23rd, 2007 @ 05:51 PM

    duece:~ tim$ cd Projects/ncg/

    duece:~/Projects/ncg tim$ cd lib/duece:~/Projects/ncg/lib tim$ ruby ./nginx_config_generator.rb config.yml.example /tmp/nginx.conf

    => Wrote /tmp/nginx.conf successfully.

    duece:~/Projects/ncg/lib tim$

  • Chris Wanstrath

    Chris Wanstrath August 23rd, 2007 @ 06:07 PM

    • State changed from “open” to “resolved”

    All fixed up in http://projects.require.errthebl..., gem 1.3 pushed to Rubyforge.

  • Tim Dysinger

    Tim Dysinger August 23rd, 2007 @ 06:27 PM

    Cool thanks!

    duece:~ tim$ sudo gem updatePassword:

    Updating installed gems...

    Need to update 1 gems from http://gems.rubyforge.org

    .

    complete

    Attempting remote update of nginx_config_generator

    Successfully installed nginx_config_generator-1.3

    Installing ri documentation for nginx_config_generator-1.3...

    Installing RDoc documentation for nginx_config_generator-1.3...

    Gems: [nginx_config_generator] updated

    duece:~ tim$ sudo gem cleanCleaning up installed gems...

    Attempting uninstall on nginx_config_generator-1.2

    Successfully uninstalled nginx_config_generator version 1.2

    Clean Up Complete

    duece:~ tim$ generate_nginx_config --example > config.ymlduece:~ tim$ generate_nginx_config config.yml => Wrote nginx.conf successfully.

    duece:~ tim$

  • Tim Dysinger

    Tim Dysinger August 23rd, 2007 @ 06:32 PM

    Just so you know

    server_name: .errtheblog.com

    is the way nginx handles wildcard domains. This would make that virtual server catch all subdomains too on port 443

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Tags

Pages