M
M
Max2019-02-08 02:01:01
Angular
Max, 2019-02-08 02:01:01

How to deploy an angular universal project?

I took an interest in the topic about angular universal. I did everything as described in the docks and I have the following structure in the dist folder

  • -dist
    • --browser
    • --server
    • server.js


Duck here. Out of curiosity, I wanted to deploy the application on a real hosting. How to do it? The contents of which folder should be uploaded to the hosting? And in general, is normal php hosting suitable for this, or is nodejs needed, or what else?
I'm not a pro, I'm just asking out of curiosity.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey P, 2019-02-14
@lynxp9

Check out this example https://github.com/Angular-RU/angular-universal-starter . There is a Dockerfile with which you can deploy the application in Docker.
In your case, you need to run the server.js file like so:
node server.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question