Sha256: 1f5668677b6cd11f9c07927f629e3ac40c36ea7b0262d7cca806b16fca4f9517
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 KB
Contents
# Go to http://wiki.merbivore.com/pages/init-rb <%= "use_orm :#{orm}" unless orm == :none %> use_test :<%= testing_framework %> use_template_engine :<%= template_engine %> # Specify your dependencies in the Gemfile Merb::BootLoader.before_app_loads do # This will get executed after dependencies have been loaded but before your app's classes have loaded. end Merb::BootLoader.after_app_loads do # This will get executed after your app's classes have been loaded. end # Move this to application.rb if you want it to be reloadable in dev mode. Merb::Router.prepare do match('/').to(:controller => "<%= self.name.gsub("-", "_") %>", :action =>'index') default_routes end Merb::Config.use { |c| c[:environment] = 'production', c[:framework] = {}, c[:use_mutex] = false c[:session_store] = 'cookie' c[:session_id_key] = '_<%= base_name %>_session_id' c[:session_secret_key] = '<%= Digest::SHA1.hexdigest(rand(100000000000).to_s).to_s %>' if Merb.env?(:production) # edit production settings c[:log_level] = :error c[:log_file] = Merb.root / "log" / "production.log" c[:exception_details] = false c[:reload_classes] = false c[:reload_templates] = false else # edit development/test settings c[:log_level] = :debug c[:log_stream] = STDOUT c[:exception_details] = true c[:reload_classes] = true c[:reload_templates] = true c[:reload_time] = 0.5 end }
Version data entries
3 entries across 3 versions & 1 rubygems