Do not always allocate a tty on connect
To import SQL files `connect` has to be used instead of `import`. Doing so can’t work with the `-t` docker option, so now we check for a tty before using this option. Fixes #18
This commit is contained in:
@@ -117,3 +117,11 @@ $ dokku postgres:unlink db9.4 my_app
|
||||
# And last, destroy the old container
|
||||
$ dokku postgres:destroy db9.4
|
||||
```
|
||||
|
||||
## importing data
|
||||
|
||||
The `import` command should be used with any non-plain-text files exported by `pg_dump`. To import a SQL file, use `connect` like this:
|
||||
|
||||
```shell
|
||||
$ dokku postgres:connect db < ./dump.sql
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user