Setupdb deletes existing variables
When running pubsweet cli's setupdb command, the script writes PUBSWEET_SECRET
in the environment variables file.
However, the way this is done, means that the existing variables in there are deleted.
The resulting file is an empty .env.dev
for example, with only PUBSWEET_SECRET
in there and everything else gone.