1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-06 22:20:06 +00:00

chore: fix for development docker-compose

This commit is contained in:
Saad Jutt
2021-11-14 21:12:10 +05:00
parent 4792f15c40
commit 5e7cecf3ea
7 changed files with 14 additions and 18 deletions

View File

@@ -1,7 +1,6 @@
import path from 'path'
import { readFileSync } from 'fs'
import * as https from 'https'
import { configuration } from '../package.json'
import appPromise from './app'
const keyPath = path.join('..', 'certificates', 'privkey.pem')
@@ -13,9 +12,10 @@ const cert = readFileSync(certPath)
appPromise.then((app) => {
const httpsServer = https.createServer({ key, cert }, app)
httpsServer.listen(configuration.sasJsPort, () => {
const sasJsPort = process.env.PORT ?? 5000
httpsServer.listen(sasJsPort, () => {
console.log(
`⚡️[server]: Server is running at https://localhost:${configuration.sasJsPort}`
`⚡️[server]: Server is running at https://localhost:${sasJsPort}`
)
})
})