fix: run migrations before starting backend
Some checks failed
CI / build-and-test (pull_request) Has been cancelled

This commit is contained in:
Vakanaut
2026-07-12 17:07:32 +03:00
parent ea7b8aff7a
commit e68df524ef
3 changed files with 4 additions and 4 deletions

View File

@@ -19,4 +19,4 @@ COPY backend/migrations ./migrations
COPY import ./import COPY import ./import
EXPOSE 3000 EXPOSE 3000
ENV PORT=3000 ENV PORT=3000
CMD ["node", "dist/index.js"] CMD ["sh", "-c", "node dist/migrate.js && node dist/index.js"]

View File

@@ -1,12 +1,12 @@
{ {
"name": "calendar-run-backend", "name": "calendar-run-backend",
"version": "1.5.2", "version": "1.5.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "calendar-run-backend", "name": "calendar-run-backend",
"version": "1.5.2", "version": "1.5.3",
"dependencies": { "dependencies": {
"argon2": "^0.44.0", "argon2": "^0.44.0",
"cookie-parser": "^1.4.7", "cookie-parser": "^1.4.7",

View File

@@ -1,6 +1,6 @@
{ {
"name": "calendar-run-backend", "name": "calendar-run-backend",
"version": "1.5.2", "version": "1.5.3",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",