2016-11-24 12 views
0

mongifyデータベース構成をcentOSで指定します。configuration.rb:14: `instance_eval ':(評価):16:構文エラー、予期しない入力の終了、予期している

端末mongify check database.configでコマンドを実行中に、次のエラーが発生しています。

/home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/configuration.rb:14:in `instance_eval': (eval):16: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError) 
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/configuration.rb:14:in `parse' 
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/cli/options.rb:78:in `config_file' 
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/cli/options.rb:58:in `parse' 
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/lib/mongify/cli/application.rb:27:in `execute!' 
from /home/hcdc/.gem/ruby/gems/mongify-1.3.1/bin/mongify:15:in `<top (required)>' 
from /usr/local/bin/mongify:23:in `load' 
from /usr/local/bin/mongify:23:in `<main>' 

マイdatabase.configファイル

sql_connection do 
    adapter  "mysql" 
    host  "10.208.35.134" 
    username "root" 
    password "hcdc123" 
    database "test" 
    batch_size 10000   
# This is defaulted to 10000 but in case you want to make that smaller (on lower RAM machines) end 

mongodb_connection do 
    host  "localhost" 
    database "test" 
end 
+1

、あなたの質問を向上させてください。適切なタイトルを付けてください。最初のセンテンスを明確かつ論理的な方法で書いて、理解しやすくします。 – Tom

+0

sql_connectionにブロックがありませんブロック –

答えて

3
sql_connection do 
    adapter  "mysql" 
    host  "10.208.35.134" 
    username "root" 
    password "hcdc123" 
    database "test" 
    batch_size 10000   
    # This is defaulted to 10000 but in case you want to make that smaller (on lower RAM machines) 
end # <<< this must be in a new line 

mongodb_connection do 
    host  "localhost" 
    database "test" 
end 
関連する問題