provide a development .ru and a production .ru
authormh <mh@immerda.ch>
Tue, 9 Aug 2011 06:37:43 +0000 (08:37 +0200)
committermh <mh@immerda.ch>
Tue, 9 Aug 2011 06:37:43 +0000 (08:37 +0200)
config-development.ru [new file with mode: 0644]
config.ru

diff --git a/config-development.ru b/config-development.ru
new file mode 100644 (file)
index 0000000..fe7989e
--- /dev/null
@@ -0,0 +1,9 @@
+require 'coquelicot_app'
+
+app = Coquelicot::Application
+
+app.set :environment, :development
+app.set :raise_errors, true
+app.disable :run
+
+run app
index fe7989e..9e509cb 100644 (file)
--- a/config.ru
+++ b/config.ru
@@ -1,9 +1,3 @@
 require 'coquelicot_app'
 
 require 'coquelicot_app'
 
-app = Coquelicot::Application
-
-app.set :environment, :development
-app.set :raise_errors, true
-app.disable :run
-
-run app
+run Coquelicot::Application