add resetdb.sh for heroku

This commit is contained in:
2021-03-11 22:23:48 +03:00
parent 83f37339d7
commit 7c06874642
2 changed files with 6 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ docker-compose example in `dockercomposeexample` folder
### Config options (for docker container) ### Config options (for docker container)
* `PORT` - web port
* `TYPEORM_HOST` - mariadb hostname * `TYPEORM_HOST` - mariadb hostname
* `TYPEORM_USERNAME` - mariadb username * `TYPEORM_USERNAME` - mariadb username

4
resetdb.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
npm run typeorm -- schema:drop
npm run typeorm -- migration:run