You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* supply the Sierra postgres credentials per the below
142
142
* optionally supply smtp server address
143
143
144
-
When possible, it is recommended that you also install the ```sequel_pg``` gem which makes database access significantly faster. See <https://github.com/jeremyevans/sequel_pg> for installation details / requirements.
144
+
When possible, it is recommended that you also install the `sequel_pg` gem which makes database access significantly faster. See <https://github.com/jeremyevans/sequel_pg> for installation details / requirements.
145
145
146
146
### Credentials
147
147
148
-
Create a yaml file in the base directory like so:
148
+
Create a yaml/text file like so:
149
149
150
150
```yaml
151
151
host: myhost.example.com
@@ -155,11 +155,18 @@ user: myusername
155
155
password: mypassword
156
156
```
157
157
158
-
Store the creds in a file ```sierra_prod.secret``` in the
159
-
current working directory or the base directory of sierra_postgres_utilities.
160
-
Creds from this file will be used as the default connection.
158
+
You may need to quote values (e.g. password) if they contain special characters.
161
159
162
-
Alternately, specify a credential file location as an environment variable, e.g.:
160
+
By default, sierra_postgres_utilities will try to read credentials from:
161
+
- a file `sierra_prod.secret` in the current working directory
162
+
- failing that, a file `sierra_prod.secret` in the user's home directory
163
+
164
+
For casual use, we recommend keeping the credentials in your home directory,
165
+
in a file called `sierra_prod.secret`.
166
+
167
+
#### Credentials via environment variables
168
+
169
+
Alternately, you can specify a credential file location as an environment variable, e.g.:
0 commit comments