Skip to content

Commit 105ec0f

Browse files
committed
butify ts
1 parent 2845e1c commit 105ec0f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import dotenv from 'dotenv';
44
dotenv.config();
55

66
const app: Express = express();
7-
const port = process.env.PORT;
7+
const port: String = process.env.PORT || "3650";
88

99
app.get('/', (req: Request, res: Response) => {
1010
res.send('Express + TypeScript Server');
1111
});
1212

1313
app.listen(port, () => {
14-
console.log(`⚡️[server]: Server is running at https://localhost:${port}`);
14+
console.log(`⚡️[server]: Server is running at http://localhost:${port}`);
1515
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "keroku",
33
"version": "1.0.0",
44
"description": "Heroku clone on Kubernetes",
5-
"main": "index.js",
5+
"main": "dist/index.js",
66
"author": "Gianni Carafa",
77
"license": "MIT",
88
"scripts": {

0 commit comments

Comments
 (0)