Deploy angular app on nginx from scratch | Deploying angular in nginx server on Windows

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • #angular #angularforbeginners #angular_developer #angulartraining #angulartutorial #angularproject #programming #programmingtutorial #webdevelopment #frontenddevelopment #webdevelopment #webdev #learnangular #learntocode #learning #learnprogramming #nginx
    Learn what is nginx, how to install and start it and how to deploy an angular application in nginx step by step from scratch.

Комментарии • 18

  • @tome.saviosavio6979
    @tome.saviosavio6979 20 дней назад

    Great!! Finally I found a good tutorial that helped me

    • @codippa
      @codippa  19 дней назад

      Thank You !

  • @bonefive6624
    @bonefive6624 5 месяцев назад

    Thank you so so much, you save my life!!!!!!🎉🎉 after spending 2 days of searching solution to host an angular app on Ubuntu, finally I found your video to setup the nginx🎉

    • @codippa
      @codippa  5 месяцев назад

      Great to know!

  • @yLuizv
    @yLuizv Год назад

    Very good. I was looking for it but I didn't find. Thank you so much

    • @codippa
      @codippa  Год назад

      Thanks..
      Hope it worked out for you !

  • @TSwamy-tn5vt
    @TSwamy-tn5vt Год назад

    Great Content !, Please do more videos on, how can we set headers and CORS while sending request to backend. Thanks in advance :)

    • @codippa
      @codippa  Год назад

      Thank you...
      Will try to make the suggested videos.

  • @katlegomogokonyane3663
    @katlegomogokonyane3663 7 месяцев назад

    Great content! I have app with base href of /report/ and when I deploy it to nginx I get issues related to MIME type of "text/html"

  • @just_DIY
    @just_DIY 8 месяцев назад

    Thank you !

  • @DonGato8310
    @DonGato8310 8 месяцев назад

    Nice video, i have a error when load the app angular, the error is " Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec".

    • @codippa
      @codippa  8 месяцев назад

      Thank You...
      Try adding this line
      include mime.types;
      inside http block

  • @shivrajhulbatte7439
    @shivrajhulbatte7439 3 месяца назад

    thank you

  • @Diedigz
    @Diedigz 11 месяцев назад

    Hi, what if have 2 angular projects in the same ngix server, do you know how to configure the .conf file? I have been triying without sucess

    • @codippa
      @codippa  11 месяцев назад +2

      You will have to deploy them in different folders such as app1 and app2.
      Then, configure the routes using 2 different location tags, such as
      location /app1{
      }
      and
      location /app2 {
      }
      And their index files will be accessible as per the mappings.
      This is practical since a single server can host multiple applications.

    • @Diedigz
      @Diedigz 11 месяцев назад

      @@codippa thanks, it work with the next configuration for each project:
      location /projectN/ {
      autoindex on;
      try_files $uri$args $uri$args/ /projectN/index.html;
      }

  • @richardsanchezcaicedo274
    @richardsanchezcaicedo274 5 месяцев назад

    The images aren't load in ../demoapp/, why?

    • @codippa
      @codippa  5 месяцев назад

      Where are your images located. Probably they are in some folder for which there is no mapping in nginx.conf such as,
      location /images/ {}