A
A
Alexey Maslov2018-02-28 21:23:49
Angular
Alexey Maslov, 2018-02-28 21:23:49

How to properly deploy an Angular application to a server?

Please tell me the way to deploy the application to the server:
There is a small SPA application on Angular 5, it communicates with the backend via the REST API. To build, I perform:
ng build --prod
An application is formed in the build directory, then I upload it to the server using phpstorm via FTP.
1. Is there a tool, like capistranorb , deployer, etc., that allows you to upload a finished application for a test, stage, production server, quickly roll back in case something happens?
2. If shared hosting - then it is better to upload the assembled application via ftp (sftp) with some kind of npm package, which one?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question