-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure to connect database when load_config #19
Open
tanahiro
wants to merge
1
commit into
ranguba:master
Choose a base branch
from
tanahiro:ensure_availabilty_in_load_config
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Ensure to connect database when load_config #19
tanahiro
wants to merge
1
commit into
ranguba:master
from
tanahiro:ensure_availabilty_in_load_config
Conversation
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
Can you show full errror message what you got? |
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"
end Execution and error messages
|
Thanks. |
Yes, you're right. Or maybe using with non-rails framework like Padrino. |
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