12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/generators/hvor/install/install_generator.rb', line 12
def show_readme
say ""
say "Hvor is installed. Next steps:", :green
say " 1. Mount the engine, e.g. in config/routes.rb:"
say ' mount Hvor::Engine => "/hvor"'
say " 2. Install and run its migration:"
say " bin/rails hvor:install:migrations"
say " bin/rails db:migrate"
say " 3. Set an IP2Location LITE token in config/initializers/hvor.rb"
say " (or the IP2LOCATION_TOKEN env var), then enqueue"
say " Hvor::ImportIpRangesJob to populate Hvor::IPRange."
say ""
end
|