lib/integrity/installer.rb in integrity-0.1.9.2 vs lib/integrity/installer.rb in integrity-0.1.9.3
- old
+ new
@@ -19,11 +19,10 @@
puts post_heroku_install_message
else
create_dir_structure
copy_template_files
edit_template_files
- migrate_db(root.join("config.yml"))
puts post_install_message
end
end
desc "migrate_db [CONFIG]",
@@ -43,10 +42,11 @@
require "thin"
require "do_sqlite3"
File.file?(options[:config].to_s) ?
Integrity.new(options[:config]) : Integrity.new
+ Integrity.config[:base_uri] = "http://0.0.0.0:#{options[:port]}"
DataMapper.auto_migrate!
Thin::Server.start("0.0.0.0", options[:port], Integrity::App)
rescue LoadError => boom
@@ -107,9 +107,14 @@
def post_install_message
<<EOF
Awesome! Integrity was installed successfully!
+To complete the installation, please configure the `database_uri` in
+#{root.join("config.yml")} and install the matching DataMapper adapter if
+necessary. Then, run `integrity migrate_db #{root.join("config.yml")}
+
+== Notifiers
If you want to enable notifiers, install the gems and then require them
in #{root}/config.ru
For example: