Sha256: 94e4f7fbf6ef8ef004438173dcfbf393e6b75f30f20d43153a459d8a74e7ffc4
Contents?: true
Size: 1.75 KB
Versions: 13
Compression:
Stored size: 1.75 KB
Contents
# # ==== Standalone FullTestSlice configuration # # This configuration/environment file is only loaded by bin/slice, which can be # used during development of the slice. It has no effect on this slice being # loaded in a host application. To run your slice in standalone mode, just # run 'slice' from its directory. The 'slice' command is very similar to # the 'merb' command, and takes all the same options, including -i to drop # into an irb session for example. # # The usual Merb configuration directives and init.rb setup methods apply, # including use_orm and before_app_loads/after_app_loads. # # If you need need different configurations for different environments you can # even create the specific environment file in config/environments/ just like # in a regular Merb application. # # In fact, a slice is no different from a normal # Merb application - it only # differs by the fact that seamlessly integrates into a so called 'host' # application, which in turn can override or finetune the slice implementation # code and views. # Merb::Config.use do |c| # The session_secret_key is only required for the cookie session store. c[:session_secret_key] = '<%= Digest::SHA1.hexdigest(rand(100000000000).to_s).to_s %>' # There are various options here, by default Merb comes with 'cookie', # 'memory', 'memcache' or 'container'. # You can of course use your favorite ORM instead: # 'datamapper', 'sequel' or 'activerecord'. c[:session_store] = 'cookie' c[:session_id_key] = '_<%= base_name %>_session_id' # When running a slice standalone, you're usually developing it, # so enable template/class reloading by default. c[:reload_templates] = true c[:exception_details] = true c[:reload_classes] = true c[:reload_time] = 0.5 end
Version data entries
13 entries across 13 versions & 1 rubygems