We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2845e1c commit 105ec0fCopy full SHA for 105ec0f
index.ts
@@ -4,12 +4,12 @@ import dotenv from 'dotenv';
4
dotenv.config();
5
6
const app: Express = express();
7
-const port = process.env.PORT;
+const port: String = process.env.PORT || "3650";
8
9
app.get('/', (req: Request, res: Response) => {
10
res.send('Express + TypeScript Server');
11
});
12
13
app.listen(port, () => {
14
- console.log(`⚡️[server]: Server is running at https://localhost:${port}`);
+ console.log(`⚡️[server]: Server is running at http://localhost:${port}`);
15
package.json
@@ -2,7 +2,7 @@
2
"name": "keroku",
3
"version": "1.0.0",
"description": "Heroku clone on Kubernetes",
- "main": "index.js",
+ "main": "dist/index.js",
"author": "Gianni Carafa",
"license": "MIT",
"scripts": {
0 commit comments