How can I deploy my Angular 2 + Typescript + Webpack app

后端 未结 4 1428
深忆病人
深忆病人 2020-12-06 00:04

I am actually learning Angular 2 with Typescript and developed a little app by based on the angular-seed project (angular-seed). I have built the app for production purposes

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 00:36

    A quicker way to deploy is as below:

    1. Install nginx as mentioned by Herman.
    2. Copy your dist/* files to /var/www/html/ without disturbing /etc/nginx/sites-available/default.
    sudo cp /your/path/to/dist/* /var/www/html/
    3. Restart nginx:
    sudo systemctl restart nginx

提交回复
热议问题