Search code examples
angularserver-side-renderingpleskangular17

How can I deploy my angular app in plesk web host edition?


I'm new at this of deploying my apps, I have one app finished and ready to deploy, also I already do the build section, so i have the dist folder, but if you remember in Anguar 16 < you only have some js files and one html in dist.

But now I have some files and other 2 new folders, browser and server.

And I don't know if I have to do the same as always, just copy and paste the folder in plesk, or something more.

Also this is an apache server so the documentation of angular gives you a configuration for the htaccess, but with this new version it changes?

This is the first time I use a server, and when I look for informations most of it use other sites not cPanel or Plesk, and I don't know where I can search for more info than here

I appreciate all kinds of help, thank you, take care!

dist_folder

Everything I tried and done is the things documentations tells me to do, but I don't catch it!


Solution

  • server folder is for Server-side rendering(SSR) , you need nodeJs on your server to host angular as SSR and some configuration like editing .htaccess for apache.

    browser is for client side rendering

    More info abour SSR: enter link description here