lib/generators/umlaut/install_generator.rb in umlaut-3.0.0alpha1 vs lib/generators/umlaut/install_generator.rb in umlaut-3.0.0alpha2

- old
+ new

@@ -25,12 +25,12 @@ EOS end end end - def database_yml_hint - guarded(:database_yml_hint) do + def database_yml_hints + guarded(:database_yml_hints) do insert_into_file("config/database.yml", :before => /^(\s*)development:/) do <<-eos # # UMLAUT: mysql db with mysql2 adapter strongly recommended for Umlaut, in both # production and development. sqlite3 has unclear semantics under threaded @@ -46,10 +46,32 @@ # password: # database: # pool: 30 eos - end + end + append_to_file("config/database.yml") do + <<-eos + +# +# UMLAUT: for the 'search' functions (A-Z title lookup) to work, you need +# a direct database connection to the SFX database, under 'sfx_db' key. +# You should manually set up a new read-only MySQL account in the SFX db +# for this purpose, rather than use one of the full-access existing SFX +# mysql accounts. +# +#sfx_db: +# adapter: mysql2 +# host: my_sfx_host.u.edu +# port: 3310 # 3310 is defualt SFX embedded mysql port +# database: sfxlcl41 # or other sfx instance db +# username: +# password: +# pool: 5 +# encoding: utf8 +# + eos + end end end def routes