lib/dugway/cli/templates/config.tt in dugway-0.10.2 vs lib/dugway/cli/templates/config.tt in dugway-0.10.3
- old
+ new
@@ -1,22 +1,12 @@
require 'dugway'
-options = {}
-
-# Use data from any store to make sure your theme looks great with all sorts of products, pages,
-# categories, and more. Just give us the subdomain. Default is "dugway" for dugway.bigcartel.com.
-# options[:store] = 'mystore'
-
-# Simulate the customization done by store owners by passing values to different variables.
-# Default values are based on the "default" for each setting in your settings.json.
-# options[:customization] = {
-# :logo => {
-# :url => 'http://placehold.it/200x50/000000/ffffff&text=My+Logo',
-# :width => 200,
-# :height => 50
-# },
-# :background_color => '#CCCCCC',
-# :show_search => true,
-# :twitter_username => 'mytwitter'
-# }
+begin
+ file = File.read('.dugway.json')
+ json = JSON.parse(file)
+ options = HashWithIndifferentAccess.new(json)
+rescue Exception => e
+ puts e
+ options = {}
+end
run Dugway.application(options)