You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

connect.rb 299B

12345678910111213
  1. require 'dotenv'
  2. require 'logger'
  3. Dotenv.load(File.expand_path('../.env'))
  4. DB =
  5. Sequel.connect(
  6. adapter: :postgres,
  7. database: ENV['DB_DATABASE'],
  8. user: ENV['DB_USERNAME'],
  9. password: ENV['DB_PASSWORD'],
  10. logger: ENV['APP_ENV'] == 'development' ? Logger.new('db/log') : nil
  11. )