diff --git a/_deploy/deoloy.azure.staging.yml b/_deploy/deoloy.azure.staging.yml index 2fad3a5..2ef2647 100644 --- a/_deploy/deoloy.azure.staging.yml +++ b/_deploy/deoloy.azure.staging.yml @@ -16,7 +16,7 @@ services: - GIT_USERNAME=deploy - GIT_PASSWORD=L3Kr2R438u4F7 - ADMIN_PASSWORD=kolichkisofia2024 - command: sh -c " cd /app && npm install && npx next build && npm run start-env; tail -f /dev/null" + command: sh -c " cd /app && npm install && npx next build && npx prisma migrate deploy && npm run start-env; tail -f /dev/null" tty: true stdin_open: true restart: always diff --git a/pages/cart/locations/index.tsx b/pages/cart/locations/index.tsx index e6b5b44..71b23a1 100644 --- a/pages/cart/locations/index.tsx +++ b/pages/cart/locations/index.tsx @@ -43,7 +43,7 @@ export default LocationsPage; export const getServerSideProps = async (context) => { const axios = await axiosServer(context); const { data: items } = await axios.get("/api/data/locations"); - //console.log('get server props - locations:' + items.length); + console.log('get server props - locations:' + items.length); //console.log(items); return { props: { diff --git a/src/helpers/common.js b/src/helpers/common.js index b6238c7..00cc888 100644 --- a/src/helpers/common.js +++ b/src/helpers/common.js @@ -89,7 +89,7 @@ exports.getPrismaClient = function getPrismaClient() { logger.debug("getPrismaClient: process.env.DATABASE = ", process.env.DATABASE); prisma = new PrismaClient({ // Optional: Enable Prisma logging - //log: ['query', 'info', 'warn', 'error'], + log: ['query', 'info', 'warn', 'error'], datasources: { db: { url: process.env.DATABASE } }, }); }