Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix rackup so it uses the builder

  • Loading branch information...
commit 9d8e741723fcb8c3ef2588f92d79946f6f0906a9 1 parent 1120b82
Bryan Powell bryanp authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 pakyow-core/lib/generators/pakyow/app/templates/config.ru
5 pakyow-core/lib/generators/pakyow/app/templates/config.ru
View
@@ -1,4 +1,3 @@
-env = ENV['RACK_ENV'] || 'production'
-
require File.expand_path('../config/application', __FILE__)
-run PakyowApplication::Application.stage(env)
+PakyowApplication::Application.builder.run(PakyowApplication::Application.stage(ENV['RACK_ENV'] || nil))
+run PakyowApplication::Application.builder.to_app
Please sign in to comment.
Something went wrong with that request. Please try again.