Trying deploy
This commit is contained in:
parent
2d19a8842f
commit
3f5c875cf1
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Hello !</h2>
|
||||
</body>
|
||||
</html>
|
12
server.js
12
server.js
|
@ -1,11 +1 @@
|
|||
const express = require("express");
|
||||
|
||||
|
||||
const app = express();
|
||||
|
||||
app.get("/",function(request, response){
|
||||
response.end("Merhaba")
|
||||
})
|
||||
|
||||
|
||||
app.listen(6480,'0.0.0.0');
|
||||
require("./server/http.js");
|
|
@ -0,0 +1,7 @@
|
|||
const express = require("express");
|
||||
|
||||
const app = express();
|
||||
|
||||
app.listen(6480,'0.0.0.0');
|
||||
|
||||
exports.app = app;
|
|
@ -0,0 +1,14 @@
|
|||
const express = require("express");
|
||||
const {resolve} = require("node:path");
|
||||
const {app} = require("./http");
|
||||
|
||||
|
||||
app.use(
|
||||
express.static(
|
||||
resolve(__dirname,"../public"),
|
||||
{
|
||||
acceptRanges: true,
|
||||
etag: true
|
||||
}
|
||||
)
|
||||
);
|
Loading…
Reference in New Issue