Skip to content

Commit

Permalink
Production changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos Proestakis committed Oct 20, 2024
1 parent f5bae6e commit 6fe793a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Binary file modified db/blockly_unix_database.db
Binary file not shown.
13 changes: 9 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
if (process.env.NODE_ENV !== 'production') {
require('dotenv').config();
}

const fs = require('fs');
// Importing libraries installed with npm
const https = require('https');
const express = require('express');
const app = express();
const path = require('path');
Expand Down Expand Up @@ -381,7 +382,7 @@ passport.use(
{
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
callbackURL: 'http://localhost:3000/auth/google/callback'
callbackURL: 'https://ublocks.balab.aueb.gr/auth/google/callback'
},
(accessToken, refreshToken, profile, done) => {
// Check if user with the given Google ID exists
Expand Down Expand Up @@ -480,6 +481,10 @@ app.get(
}
);

app.listen(3000, () => {
console.log('Server started on http://localhost:3000');


app.listen(8443, () => {
console.log('Server is running on https://ublocks.balab.aueb.gr');
});


0 comments on commit 6fe793a

Please sign in to comment.