diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3198e0873..a64dc057e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -657,4 +657,4 @@ jobs: - name: database | up run: docker-compose -f docker-compose.yml run -T database yarn up - name: database | reset - run: docker-compose -f docker-compose.yml run -T database yarn dev_reset \ No newline at end of file + run: docker-compose -f docker-compose.yml run -T database yarn reset \ No newline at end of file diff --git a/database/Dockerfile b/database/Dockerfile index b546dff32..f2048284b 100644 --- a/database/Dockerfile +++ b/database/Dockerfile @@ -121,7 +121,7 @@ CMD /bin/sh -c "yarn run up" # FROM production as production_reset # Run command -# CMD /bin/sh -c "yarn run reset" +CMD /bin/sh -c "yarn run reset" ################################################################################## # PRODUCTION DOWN ################################################################ diff --git a/database/package.json b/database/package.json index bc9fbe961..a84026e6a 100644 --- a/database/package.json +++ b/database/package.json @@ -12,6 +12,7 @@ "clean": "tsc --build --clean", "up": "cd build && node src/index.js up", "down": "cd build && node src/index.js down", + "reset": "cd build && node src/index.js reset", "dev_up": "nodemon -w ./ --ext ts --exec ts-node src/index.ts up", "dev_down": "nodemon -w ./ --ext ts --exec ts-node src/index.ts down", "dev_reset": "nodemon -w ./ --ext ts --exec ts-node src/index.ts reset",