This commit is contained in:
Dobromir Popov
2024-12-05 12:35:30 +02:00
parent 138918c043
commit 7c21406ef5
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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: {

View File

@ -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 } },
});
}