add characters index page

This commit is contained in:
Etienne Ischer
2021-04-23 16:27:28 +02:00
parent 9d08bc8a23
commit 5d7217f355
14 changed files with 101 additions and 5 deletions

View File

@@ -20,10 +20,10 @@ default: &default
# For details on connection pooling, see Rails configuration guide
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: <%= ENV['DATABASE_URL'] %>
password: <%= ENV['DATABASE_URL'] %>
host: <%= ENV['DATABASE_URL'] %>
port: <%= ENV['DATABASE_URL'] %>
username: <%= ENV['DATABASE_USERNAME'] %>
password: <%= ENV['DATABASE_PASSWORD'] %>
host: <%= ENV['DATABASE_HOST'] %>
port: <%= ENV['DATABASE_PORT'] %>
development:
<<: *default
@@ -84,4 +84,6 @@ test:
# for a full overview on how database connection configuration can be specified.
#
production:
adapter: postgresql
encoding: unicode
url: <%= ENV['DATABASE_URL'] %>

View File

@@ -9,4 +9,5 @@ Rails.application.routes.draw do
end
root to: "home#index"
mount Sidekiq::Web => '/sidekiq'
resources :wow_characters, path: '/wow-characters', only: [:index, :show]
end