Spaces:
Sleeping
Sleeping
probar solo el app back
Browse files- Dockerfile +7 -7
- back/index.html +14 -0
- back/main.js +2 -2
Dockerfile
CHANGED
@@ -31,17 +31,17 @@ RUN npm -v
|
|
31 |
|
32 |
# COPY ./frond ./frond
|
33 |
# COPY ./back ./back
|
34 |
-
COPY
|
35 |
WORKDIR app
|
36 |
RUN ls
|
37 |
|
38 |
-
RUN cd frond
|
39 |
-
RUN ls
|
40 |
-
RUN npm install
|
41 |
-
RUN npm run build
|
42 |
|
43 |
-
RUN cd ../back
|
44 |
-
RUN ls
|
45 |
RUN npm install
|
46 |
|
47 |
# RUN cd /dist/. /var/etc/html
|
|
|
31 |
|
32 |
# COPY ./frond ./frond
|
33 |
# COPY ./back ./back
|
34 |
+
COPY ./back ./app
|
35 |
WORKDIR app
|
36 |
RUN ls
|
37 |
|
38 |
+
# RUN cd frond
|
39 |
+
# RUN ls
|
40 |
+
# RUN npm install
|
41 |
+
# RUN npm run build
|
42 |
|
43 |
+
# RUN cd ../back
|
44 |
+
# RUN ls
|
45 |
RUN npm install
|
46 |
|
47 |
# RUN cd /dist/. /var/etc/html
|
back/index.html
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="es">
|
3 |
+
|
4 |
+
<head>
|
5 |
+
<meta charset="UTF-8">
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
+
<title>Back mamalon</title>
|
8 |
+
</head>
|
9 |
+
|
10 |
+
<body>
|
11 |
+
<h1>Soy un index raron</h1>
|
12 |
+
</body>
|
13 |
+
|
14 |
+
</html>
|
back/main.js
CHANGED
@@ -7,12 +7,12 @@ let app = express();
|
|
7 |
const PORT = process.env.PORT || 7860;
|
8 |
|
9 |
// Uso middleware
|
10 |
-
app.use("/public", express.static(`${__dirname}/../frond/dist/public`));
|
11 |
app.use(bodyParser.urlencoded({ extended: false }));
|
12 |
|
13 |
// Endpoints
|
14 |
app.get("/", (req, res) => {
|
15 |
-
res.sendFile(`${__dirname}
|
16 |
});
|
17 |
|
18 |
app.listen(PORT, () => {
|
|
|
7 |
const PORT = process.env.PORT || 7860;
|
8 |
|
9 |
// Uso middleware
|
10 |
+
// app.use("/public", express.static(`${__dirname}/../frond/dist/public`));
|
11 |
app.use(bodyParser.urlencoded({ extended: false }));
|
12 |
|
13 |
// Endpoints
|
14 |
app.get("/", (req, res) => {
|
15 |
+
res.sendFile(`${__dirname}/index.html`);
|
16 |
});
|
17 |
|
18 |
app.listen(PORT, () => {
|