Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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

#89

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

State: resolved
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Tim Dysinger
    Tim Dysinger

    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

    August 23rd, 2007 @ 03:30 PM

  2. Tim Dysinger
    Tim Dysinger

    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.

    August 23rd, 2007 @ 03:38 PM

  3. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to open

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

    August 23rd, 2007 @ 04:21 PM

  4. Tim Dysinger
    Tim Dysinger

    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$

    August 23rd, 2007 @ 05:46 PM

  5. Tim Dysinger
    Tim Dysinger

    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$

    August 23rd, 2007 @ 05:51 PM

  6. Chris Wanstrath
    Chris Wanstrath
    • State changed from open to resolved

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

    August 23rd, 2007 @ 06:07 PM

  7. Tim Dysinger
    Tim Dysinger

    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$

    August 23rd, 2007 @ 06:27 PM

  8. Tim Dysinger
    Tim Dysinger

    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

    August 23rd, 2007 @ 06:32 PM

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.