README.md in otacrawler-0.1.1 vs README.md in otacrawler-0.1.2

- old
+ new

@@ -19,20 +19,37 @@ $ gem install crawler ## Usage +Setting database: +```YAML +# database.yml +development: + adapter: mysql2 + host: localhost + username: root + database: otacrawler + +production: + adapter: mysql2 + host: xxxx + username: xxxx + database: otacrawler +``` + Run robot: ```ruby require 'otacrawler' Otacrawler::Robot.new.run ``` ## ENV ``` -DATABASE_SETTING_PATH - Database setting file path. It formatted YAML. +DATABASE_SETTING_PATH - Database setting file path. That file formatted YAML. +OTACRAWLER_ENV - Setting environment. This doesn't overrides the value of the environment variable RAILS_ENV. ``` ## Development If you want to add crawling sites, you add that site to `Otacrawler::Sites`. At that time, you should inherit the site from `Otacrawler::Sites::Base`.