Skip to content

Commit

Permalink
Modified for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Tan authored and Ryan Tan committed Jul 22, 2023
1 parent fc6d714 commit 20428f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions nextjs/src/config.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
// expressHost: "https://mimetic-surf-388204.as.r.appspot.com"
expressHost: 'http://localhost:8080'
expressHost: "https://mimetic-surf-388204.as.r.appspot.com"
// expressHost: 'http://localhost:8080'
};
26 changes: 13 additions & 13 deletions server/database/connection.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Sequelize } from 'sequelize';

// For development
const sequelize = new Sequelize('ClassMate', 'postgres', 'postgres', {
host: 'localhost',
port: 5432,
dialect: 'postgres',
// logging: false
// logging: process.env.NODE_ENV === 'production' ? false : console.log,
});
// // For development
// const sequelize = new Sequelize('ClassMate', 'postgres', 'postgres', {
// host: 'localhost',
// port: 5432,
// dialect: 'postgres',
// // logging: false
// // logging: process.env.NODE_ENV === 'production' ? false : console.log,
// });

// // For testing
// const sequelize = new Sequelize('ClassMateTest', 'postgres', 'postgres', {
Expand All @@ -19,11 +19,11 @@ const sequelize = new Sequelize('ClassMate', 'postgres', 'postgres', {
// });

// For Production
// const sequelize = new Sequelize('postgres', 'postgres', 'ClassMate123!1', {
// host: 'db.tubxvcrohjakulghoizg.supabase.co',
// port: 6543,
// dialect: 'postgres'
// });
const sequelize = new Sequelize('postgres', 'postgres', 'ClassMate123!1', {
host: 'db.tubxvcrohjakulghoizg.supabase.co',
port: 6543,
dialect: 'postgres'
});


export async function createSequelizeConnection(instance: Sequelize) {
Expand Down

1 comment on commit 20428f3

@vercel
Copy link

@vercel vercel bot commented on 20428f3 Jul 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.