From 7c068746420408dfeacb4e7fa1904b57c0439ac8 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Thu, 11 Mar 2021 22:23:48 +0300 Subject: [PATCH] add resetdb.sh for heroku --- README.md | 2 ++ resetdb.sh | 4 ++++ 2 files changed, 6 insertions(+) create mode 100755 resetdb.sh diff --git a/README.md b/README.md index 2fc18b1..9491301 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ docker-compose example in `dockercomposeexample` folder ### Config options (for docker container) +* `PORT` - web port + * `TYPEORM_HOST` - mariadb hostname * `TYPEORM_USERNAME` - mariadb username diff --git a/resetdb.sh b/resetdb.sh new file mode 100755 index 0000000..8f2149c --- /dev/null +++ b/resetdb.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +npm run typeorm -- schema:drop +npm run typeorm -- migration:run