Browse Source

Explicit path to dotenv

master
Dylan Baker 4 years ago
parent
commit
dae4be5a8f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      db/connect.rb

+ 4
- 0
db/connect.rb View File

@@ -1,3 +1,7 @@
1
+require 'dotenv'
2
+
3
+Dotenv.load(File.expand_path('../.env'))
4
+
1 5
 def connect
2 6
   Sequel.connect(
3 7
     adapter: :postgres,

Loading…
Cancel
Save