Created
February 1, 2012 09:57
-
-
Save happy15/1716284 to your computer and use it in GitHub Desktop.
error when rake db:migrate in zen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake aborted! | |
undefined local variable or method `zen' for main:Object | |
/home/sheng/playground/hello-zen/hello-zen/config/config.rb:20:in `<top (required)>' | |
/home/sheng/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
/home/sheng/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
/home/sheng/playground/hello-zen/hello-zen/app.rb:16:in `<top (required)>' | |
/home/sheng/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
/home/sheng/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
/home/sheng/playground/hello-zen/hello-zen/Rakefile:1:in `<top (required)>' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `load' | |
/home/sheng/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Main configuration file for your project. This file should contain settings
such as the path to the root directory, the mode to use for Ramaze (dev, live,
etc) and various cache related settings.
Because this file is loaded using require() like any other file you're free to
add statements and custom code in this configuration file.
The root directory of your application. This directory will be used for
various settings by Zen and is therefor required.
Zen.root = DIR('../')
The application mode to use. Based on different modes your application might
behave differently. For example, when set to :dev assets will not be minified.
Ramaze.options.mode = :dev
The name of your application. Its very important that this name is unique,
especially when a cache is shared among different Ramaze applications. If
these applications were to use the same name they might end up retrieving the
wrong data.
Ramaze.options.app.name = :hello-zen
The session identifier to use for cookies.
Ramaze.options.session.key = 'hello-zen.sid'
Whether or not views should be cached after they've been read or pre-compiled.
It is recommended to turn this off when developing your application. By
default these settings are automatically set based on the mode specified in
Ramaze.options.mode.
Ramaze::View.options.cache = Ramaze.options.mode == :live
Ramaze::View.options.read_cache = Ramaze.options.mode == :live
The cache driver to use for sessions. If you're running your application using
multiple processes (e.g. 3 Unicorn workers) you should use an external cache
such as Ramaze::Cache::MemCache. Not doing this will result in synchronization
problems between these processes.
Ramaze::Cache.options.session = Ramaze::Cache::LRU
The cache driver to use for storing settings. Similar to
Ramaze::Cache.options.session you should use an external cache in case you're
running a multi-process based setup.
Ramaze::Cache.options.settings = Ramaze::Cache::LRU
The cache driver to use for storing translations. If no value is specified in
your application Ramaze::Cache::LRU is used.
For this setting it is highly recommended to use an external cache such as
Redis or Memcached as it can greatly reduce the amount of used memory.
Ramaze::Cache.options.translations = Ramaze::Cache::LRU