perus 0.1.31 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perus/server/db.rb +1 -1
- data/lib/perus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71880ac5a65089aaa8aceb84e3e9628f08a1207a
|
4
|
+
data.tar.gz: 7a3bc0e61ddca2e3dd6bdcea056c6f5c5dcd7974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b8fd846c3800d8b3ae16aa74a276ed62b8c045fef18e12ad3050dc99e96aca618b0f5a4d974e248f990d66e1bd6b291a5ed56b8fe86a8d8d0089108b06d38fe
|
7
|
+
data.tar.gz: c59862a9475df45e1279bd3b4aa8f47fab8c3c160eb283155c7513c24c5e6e104275b2f2979f19c9cdcbcc7ac5bd4aa73e1f1d8d96c822b8aac9c590b14366f4
|
data/lib/perus/server/db.rb
CHANGED
@@ -17,7 +17,7 @@ module Perus::Server
|
|
17
17
|
Sequel.extension :inflector
|
18
18
|
|
19
19
|
# connect/create the database and run any new migrations
|
20
|
-
@db = Sequel.postgres('perus', host: 'localhost', username: Server.options.db['username'], password: Server.options.db['password'])
|
20
|
+
@db = Sequel.postgres('perus', host: (Server.options.db['host'] || ENV['POSTGRES_HOST'] || 'localhost'), username: Server.options.db['username'], password: Server.options.db['password'])
|
21
21
|
Sequel::Migrator.run(@db, File.join(__dir__, 'migrations'))
|
22
22
|
|
23
23
|
# load models - these rely on an existing db connection
|
data/lib/perus/version.rb
CHANGED