Browse Source

ajout des informations d'un user pg dans une variable d'env

Moussaillon Doe 3 years ago
parent
commit
9892ef79cc
2 changed files with 8 additions and 2 deletions
  1. 5
    0
      Gemfile.lock
  2. 3
    2
      config/database.yml

+ 5
- 0
Gemfile.lock View File

@@ -91,9 +91,13 @@ GEM
91 91
     marcel (1.0.1)
92 92
     method_source (1.0.0)
93 93
     mini_mime (1.0.3)
94
+    mini_portile2 (2.5.3)
94 95
     minitest (5.14.4)
95 96
     msgpack (1.4.2)
96 97
     nio4r (2.5.7)
98
+    nokogiri (1.11.3)
99
+      mini_portile2 (~> 2.5.0)
100
+      racc (~> 1.4)
97 101
     nokogiri (1.11.3-x86_64-linux)
98 102
       racc (~> 1.4)
99 103
     pg (1.2.3)
@@ -161,6 +165,7 @@ GEM
161 165
     zeitwerk (2.4.2)
162 166
 
163 167
 PLATFORMS
168
+  armv7l-linux-eabihf
164 169
   x86_64-linux
165 170
 
166 171
 DEPENDENCIES

+ 3
- 2
config/database.yml View File

@@ -9,7 +9,8 @@ default: &default
9 9
   adapter: postgresql
10 10
   pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
11 11
   timeout: 5000
12
-  username: lou
12
+  username: <%= ENV['PG_USER'] %>
13
+  password: <%= ENV['PG_USER_PWD'] %>
13 14
 
14 15
 development:
15 16
   <<: *default
@@ -27,4 +28,4 @@ test:
27 28
 production:
28 29
   <<: *default
29 30
   # database: db/production.sqlite3
30
-  database: registra_production
31
+  database: registra_production

Loading…
Cancel
Save