env = ENV['RACK_ENV'] || 'production'

require File.expand_path('../config/application', __FILE__)
run PakyowApplication::Application.stage(env)

require File.expand_path('../config/application', __FILE__)
PakyowApplication::Application.builder.run(PakyowApplication::Application.stage(ENV['RACK_ENV'] || nil))
run PakyowApplication::Application.builder.to_app

Fix rackup so it uses the builder
Fix rackup so it uses the builder
