Pakyow with Phusion Passenger

24 views
Skip to first unread message

Chris Hansen

unread,
Nov 6, 2013, 3:16:41 PM11/6/13
to pak...@googlegroups.com
Has anyone run Pakyow with Phusion Passenger?  If so, any tips on configuration and setup?  If not, is there any reason this shouldn't work?

Thanks!

--Chris

Bryan Powell

unread,
Nov 6, 2013, 5:31:47 PM11/6/13
to pak...@googlegroups.com
Yes, we run primarily on Passenger. The bundled config.ru file should work. Can you provide any specific problems/errors?

Bryan P.


--
You received this message because you are subscribed to the Google Groups "Pakyow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pakyow+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Chris Hansen

unread,
Nov 6, 2013, 6:32:45 PM11/6/13
to pak...@googlegroups.com
Yes, here's the error message:

uninitialized constant Pakyow::Application (NameError)
  /Users/chris/pp_webroots/merings_pakyow/config/application.rb:6:in `<module:PakyowApplication>'
  /Users/chris/pp_webroots/merings_pakyow/config/application.rb:5:in `<top (required)>'
  config.ru:5:in `require'
  config.ru:5:in `block in <main>'
  /Users/chris/.rvm/gems/ruby-2.0.0-p195@merings_pakyow/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
  /Users/chris/.rvm/gems/ruby-2.0.0-p195@merings_pakyow/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /Users/chris/.rvm/gems/ruby-2.0.0-p195@merings_pakyow/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:105:in `eval'
  /Users/chris/.rvm/gems/ruby-2.0.0-p195@merings_pakyow/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:105:in `preload_app'
  /Users/chris/.rvm/gems/ruby-2.0.0-p195@merings_pakyow/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:150:in `<module:App>'
  /Users/chris/.rvm/gems/ruby-2.0.0-p195@merings_pakyow/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /Users/chris/.rvm/gems/ruby-2.0.0-p195@merings_pakyow/gems/passenger-4.0.21/helper-scripts/rack-preloader.rb:28:in `<main>'

Bryan Powell

unread,
Nov 6, 2013, 7:02:21 PM11/6/13
to pak...@googlegroups.com
Ok, so that's even weirder. Can you paste the contents of config/application.rb? Also, can you confirm that you're using 0.7.2?

Bryan P.

Chris Hansen

unread,
Nov 6, 2013, 7:15:28 PM11/6/13
to pak...@googlegroups.com
First off, I'm running 0.8.rc4.  Should I go back to 0.7.2?

Here's the contents of application.rb:

require 'rubygems'
require 'pakyow'


module PakyowApplication
  class Application < Pakyow::Application
    config.app.default_environment = :development
    cookie_secret = 'f2MRN13XxUb1rvAub7HC3rTUFRl4argF'

    configure(:development) do
      app.dev_mode = true
    end
    
    routes do
      default :ApplicationController, :index

      get 'lab/id_test/:id', :LabController, :id_test
    end
    
    middleware do
      use Rack::Session::Cookie, :secret => cookie_secret
    end
  end
end

Bryan Powell

unread,
Nov 6, 2013, 7:52:07 PM11/6/13
to pak...@googlegroups.com
That isn't a 0.8 style app. Looks to me like you're trying to run a 0.7 app in the 0.8 environment.

Bryan P.

Chris Hansen

unread,
Nov 7, 2013, 2:15:18 AM11/7/13
to pak...@googlegroups.com
Aha!  Okay, I'll look at that.
Message has been deleted

Chris Hansen

unread,
Nov 7, 2013, 5:41:12 PM11/7/13
to pak...@googlegroups.com
Turns out that the problem was an old version of Pakyow installed in my default gemset (rvm is a two edged sword...) which meant that the generated template was the old style (and I had just moved over my code.)  At any rate, I fixed that, and things are working now.  Thanks!

--Chris

Bryan Powell

unread,
Nov 8, 2013, 10:23:39 AM11/8/13
to pak...@googlegroups.com
Awesome! Let me know if you hit anything else.
Reply all
Reply to author
Forward
0 new messages