Ver código fonte

Remove project name from envvars in docs

Ben Firshman 11 anos atrás
pai
commit
b4cbcbefa6
2 arquivos alterados com 4 adições e 4 exclusões
  1. 2 2
      docs/django.md
  2. 2 2
      docs/rails.md

+ 2 - 2
docs/django.md

@@ -60,8 +60,8 @@ First thing we need to do is set up the database connection. Replace the `DATABA
             'NAME': 'docker',
             'USER': 'docker',
             'PASSWORD': 'docker',
-            'HOST': os.environ.get('MYAPP_DB_1_PORT_5432_TCP_ADDR'),
-            'PORT': os.environ.get('MYAPP_DB_1_PORT_5432_TCP_PORT'),
+            'HOST': os.environ.get('DB_1_PORT_5432_TCP_ADDR'),
+            'PORT': os.environ.get('DB_1_PORT_5432_TCP_PORT'),
         }
     }
 

+ 2 - 2
docs/rails.md

@@ -73,8 +73,8 @@ Open up your newly-generated `database.yml`. Replace its contents with the follo
       pool: 5
       username: docker
       password: docker
-      host: <%= ENV.fetch('MYAPP_DB_1_PORT_5432_TCP_ADDR', 'localhost') %>
-      port: <%= ENV.fetch('MYAPP_DB_1_PORT_5432_TCP_PORT', '5432') %>
+      host: <%= ENV.fetch('DB_1_PORT_5432_TCP_ADDR', 'localhost') %>
+      port: <%= ENV.fetch('DB_1_PORT_5432_TCP_PORT', '5432') %>
 
     test:
       <<: *default