Open KxL51 opened 6 years ago
your vps need run as express server and config your proxy to redirect to localhost:xxxx sir.
Thanks for your answer. I have deploy the site but the connection with express doesn't seems to work. you can have a look : http://www.jetestmessitetranquille.ovh Go to textiles and what you want.
Got this error message :
`<!DOCTYPE html>
Error: Failed to lookup view "index" in views directory "/var/www/html/dist/browser"`
at Function.render (/var/www/html/server.js:117553:17)
at ServerResponse.render (/var/www/html/server.js:127772:7)
at /var/www/html/server.js:141:9
at Layer.handle [as handle_request] (/var/www/html/server.js:120002:5)
at next (/var/www/html/server.js:119750:13)
at Route.dispatch (/var/www/html/server.js:119725:3)
at Layer.handle [as handle_request] (/var/www/html/server.js:120002:5)
at /var/www/html/server.js:119225:22
at param (/var/www/html/server.js:119298:14)
at param (/var/www/html/server.js:119309:14)
I have develop a site with angular 5 which is live for now.
FileZilla : https://www.noelshack.com/2018-23-2-1528188596-capture.png
I have put the dist folder content in the html folder and i run server.js with pm2.
But now I tried to deploy the version with angular universal for the SEO and it didn't work properly. The site is host on a
OVH VPS
.I got the dist repo like this : https://www.noelshack.com/2018-23-2-1528186340-capture.png.
Where did i need to put the browser and server folder and prerender.js and server.js.
Any suggestions??