Ensure to connect database when load_config#19
Open
tanahiro wants to merge 1 commit intoranguba:masterfrom
Open
Ensure to connect database when load_config#19tanahiro wants to merge 1 commit intoranguba:masterfrom
tanahiro wants to merge 1 commit intoranguba:masterfrom
Conversation
Member
|
Can you show full errror message what you got? |
Author
|
Sorry I didn't include the info.. In development:
database: tmp/db/groonga
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
database: test/tmp/db/groonga
production:
database: tmp/db/groonga
require "rails"
require "rails/application"
require "active_groonga/railtie"
Class.new(Rails::Application) unless Rails.application
require "active_groonga"
require "rails/generators"
require "rails/generators/active_groonga"
ActiveGroonga::Base.logger = Logger.new(STDOUT)
load "active_groonga/railties/groonga.rake"
namespace :groonga do
task :environment => "load_config"
endExecution and error messages |
Member
|
Thanks. |
Author
|
Yes, you're right. Or maybe using with non-rails framework like Padrino. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello, I get an error when I try to run Rake tasks.
I don't use Rails but simply try to load some tasks from activegroonga.
With this fix, I can run without error.
Thanks