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

refactor: specs + cleanup

This commit is contained in:
Saad Jutt
2021-11-14 00:48:22 +05:00
parent 2bb10c7166
commit f2e50eb4cc
15 changed files with 130 additions and 14420 deletions

View File

@@ -1,4 +1,3 @@
import open from 'open'
import appPromise from './app'
import { configuration } from '../package.json'
@@ -7,9 +6,5 @@ appPromise.then((app) => {
console.log(
`⚡️[server]: Server is running at http://localhost:${configuration.sasJsPort}`
)
const { MODE } = process.env
if (MODE?.trim() !== 'server') {
open(`http://localhost:${configuration.sasJsPort}`)
}
})
})