Compare commits

..

No commits in common. "85e1f7b863b6344e15c9b3647390c57019abece9" and "70aa6c0dd29709d7ce48fec2dcc00b02f29ee196" have entirely different histories.

3 changed files with 7 additions and 10 deletions

View file

@ -1,2 +0,0 @@
node_modules
npm-debug.log

View file

@ -1,4 +1,4 @@
FROM node:latest FROM node:16
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app
@ -15,5 +15,5 @@ RUN npm install
# Bundle app source # Bundle app source
COPY . . COPY . .
EXPOSE ${PORT} EXPOSE 8080
CMD [ "node", "dist/index.js" ] CMD [ "node", "dist/index.js" ]

View file

@ -3,10 +3,6 @@ import GameSource from './GameSource';
import fs from 'fs'; import fs from 'fs';
import Ics from './Ics'; import Ics from './Ics';
import express from 'express' import express from 'express'
import env from 'dotenv';
env.config();
const CronJob = require('cron').CronJob; const CronJob = require('cron').CronJob;
@ -56,10 +52,13 @@ const job = new CronJob(
true, true,
'Asia/Jerusalem' 'Asia/Jerusalem'
); );
const webServer = express(); const webServer = express();
webServer.use(express.static('public')) webServer.use(express.static('public'))
webServer.listen(process.env.PORT, () => { webServer.listen(3000, () => {
console.log('Example app listening on port '+process.env.PORT+'!') console.log('Example app listening on port 3000!')
}) })