Commit 522e4607352d9e32dd85cad896b0167f8fd6ed6c
1 parent
182a7ac9
Exists in
master
and in
1 other branch
V. 0.7.6 - Test in production
Showing
3 changed files
with
2 additions
and
3 deletions
Show diff stats
bin/www
... | ... | @@ -18,6 +18,7 @@ if (process.env.NODE_ENV === 'production') { |
18 | 18 | // like our main.js file or main.css file! |
19 | 19 | // this guarantees that expressjs will look |
20 | 20 | // for specific files in specific directories |
21 | + console.log ("NEXUS-We are in production..."); | |
21 | 22 | app.use(express.static('../client/build')); // if get request comes in from some route or some file or for anything for my application and we do not understant, then look in some file from this directory to see if some file that matches up the request |
22 | 23 | |
23 | 24 | // Express will serve up the index.html file | ... | ... |
client/src/components/map.js
routes/reactMap.js
1 | 1 | module.exports = router => { |
2 | 2 | router.get("/consumer", function (req, res, next) { |
3 | 3 | console.log ("Agora vai abrir a página do React Client ..."); |
4 | - res.redirect("./client/public/index1.html"); | |
4 | + res.redirect("../client/public/index1.html"); | |
5 | 5 | }); |
6 | 6 | }; |
7 | 7 | \ No newline at end of file | ... | ... |