From eb1d59f15ebc0793ea82feb76ba5bcb9c06130f6 Mon Sep 17 00:00:00 2001 From: Jose Maria Villac Pinheiro Date: Mon, 23 Jul 2018 12:35:07 -0300 Subject: [PATCH] V. 0.7.14 - Changes to test production. --- .ssh/known_hosts | 1 + routes/index.js | 6 +++--- routes/reactMap.js | 2 -- views/index.jade | 11 ----------- views/index_.jade | 11 +++++++++++ 5 files changed, 15 insertions(+), 16 deletions(-) delete mode 100644 views/index.jade create mode 100644 views/index_.jade diff --git a/.ssh/known_hosts b/.ssh/known_hosts index 81381f2..267fb0a 100644 --- a/.ssh/known_hosts +++ b/.ssh/known_hosts @@ -1,2 +1,3 @@ bitbucket.org,104.192.143.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw== github.com,192.30.253.112 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== +192.30.253.113 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== diff --git a/routes/index.js b/routes/index.js index 55b599e..cdfce9d 100644 --- a/routes/index.js +++ b/routes/index.js @@ -14,8 +14,8 @@ require("./consumerRoutes")(router); require("./reactMap")(router); /* GET home page. */ -router.get("/", function(req, res, next) { - res.render("index", { title: "NEXUS" }); -}); +// router.get("/", function(req, res, next) { +// res.render("index", { title: "NEXUS" }); +// }); module.exports = router; diff --git a/routes/reactMap.js b/routes/reactMap.js index 8f584ce..1aa728b 100644 --- a/routes/reactMap.js +++ b/routes/reactMap.js @@ -1,7 +1,5 @@ module.exports = router => { router.get("/consumer", function (req, res, next) { console.log ("Agora vai abrir a página do React Client ..."); - const path = ""; - res.sendFile(path.resolve(__dirname, 'client/public', 'build', 'index1.html')); }); }; \ No newline at end of file diff --git a/views/index.jade b/views/index.jade deleted file mode 100644 index 8cf30a8..0000000 --- a/views/index.jade +++ /dev/null @@ -1,11 +0,0 @@ -extends layout -block content - h1= title - p Selecione aqui o link desejado 5000: - a(href="/auth/google") Selecione aqui para logar - p - a(href="/map/paulo") Selecione aqui para acessar o mapa - p - a(href="/api/current_user") Selecione aqui para saber o usuário logado - p - a(href="/api/logout") Selecione aqui para fazer logout diff --git a/views/index_.jade b/views/index_.jade new file mode 100644 index 0000000..8cf30a8 --- /dev/null +++ b/views/index_.jade @@ -0,0 +1,11 @@ +extends layout +block content + h1= title + p Selecione aqui o link desejado 5000: + a(href="/auth/google") Selecione aqui para logar + p + a(href="/map/paulo") Selecione aqui para acessar o mapa + p + a(href="/api/current_user") Selecione aqui para saber o usuário logado + p + a(href="/api/logout") Selecione aqui para fazer logout -- libgit2 0.21.2