logging
This commit is contained in:
@ -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
|
||||
|
@ -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: {
|
||||
|
@ -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 } },
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user