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

+ 3
- 2
config/database.yml View File

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

Loading…
Cancel
Save