Skip to content

Commit

Permalink
Prevent shell interpretation in the exported variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin K committed Jan 2, 2020
1 parent 89b5158 commit d993b8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/cockroachdb/TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GRANT ALL ON DATABASE example TO cockroach;

When using Migrate CLI we need to pass to database URL. Let's export it to a variable for convienience:
```
export COCKROACHDB_URL=cockroachdb://cockroach:@localhost:26257/example?sslmode=disable
export COCKROACHDB_URL='cockroachdb://cockroach:@localhost:26257/example?sslmode=disable'
```
`sslmode=disable` means that the connection with our database will not be encrypted. This is needed to connect to an insecure node.

Expand Down
2 changes: 1 addition & 1 deletion database/postgres/TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ psql -h localhost -U postgres -w -c "create database example;"
```
When using Migrate CLI we need to pass to database URL. Let's export it to a variable for convienience:
```
export POSTGRESQL_URL=postgres://postgres:password@localhost:5432/example?sslmode=disable
export POSTGRESQL_URL='postgres://postgres:password@localhost:5432/example?sslmode=disable'
```
`sslmode=disable` means that the connection with our database will not be encrypted. Enabling it is left as an exercise.

Expand Down

0 comments on commit d993b8e

Please sign in to comment.