app_generators/sinatra_app/templates/config.ru.erb in sinatra-gen-0.3.0 vs app_generators/sinatra_app/templates/config.ru.erb in sinatra-gen-0.4.0
- old
+ new
@@ -1,8 +1,8 @@
# To use with thin
# thin start -p PORT -R config.ru
-require File.join(File.dirname(__FILE__), '<%= app_name %>.rb')
+require File.join(File.dirname(__FILE__), <%- unless tiny -%>'lib', <%- end -%>'<%= app_name %>.rb')
disable :run
-set :env, :production
-run Sinatra.application
+set :environment, :production
+run <%= app_klass -%>
\ No newline at end of file