2 # ==== Standalone MerbMart configuration
4 # This configuration/environment file is only loaded by bin/slice, which can be
5 # used during development of the slice. It has no effect on this slice being
6 # loaded in a host application. To run your slice in standalone mode, just
7 # run 'slice' from its directory. The 'slice' command is very similar to
8 # the 'merb' command, and takes all the same options, including -i to drop
9 # into an irb session for example.
11 # The usual Merb configuration directives and init.rb setup methods apply,
12 # including use_orm and before_app_loads/after_app_loads.
14 # If you need need different configurations for different environments you can
15 # even create the specific environment file in config/environments/ just like
16 # in a regular Merb application.
18 # In fact, a slice is no different from a normal # Merb application - it only
19 # differs by the fact that seamlessly integrates into a so called 'host'
20 # application, which in turn can override or finetune the slice implementation
24 Merb::Config.use do |c|
26 # Sets up a custom session id key which is used for the session persistence
27 # cookie name. If not specified, defaults to '_session_id'.
28 # c[:session_id_key] = '_session_id'
30 # The session_secret_key is only required for the cookie session store.
31 c[:session_secret_key] = 'b9e47a2804f909011ae34c9cb64d3ff3d32a6479'
33 # There are various options here, by default Merb comes with 'cookie',
34 # 'memory', 'memcache' or 'container'.
35 # You can of course use your favorite ORM instead:
36 # 'datamapper', 'sequel' or 'activerecord'.
37 c[:session_store] = 'cookie'
39 # When running a slice standalone, you're usually developing it,
40 # so enable template reloading by default.
41 c[:reload_templates] = true