aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru17
1 files changed, 17 insertions, 0 deletions
diff --git a/config.ru b/config.ru
new file mode 100644
index 0000000..144a7dc
--- /dev/null
+++ b/config.ru
@@ -0,0 +1,17 @@
+require 'gorg/base'
+require 'gorg/application'
+
+# TODO: refactor Gorg init and config code to avoid a nasty class
+# construction like this.
+class Fake
+ extend Gorg
+ gorgInit
+end
+
+map '/images' do
+ mounts = $Config['mounts']
+ mount_options = Hash[*mounts.flatten]
+ run Rack::File.new(mount_options['/images'])
+end
+
+run Gorg::Application.new