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

  • @illiakhamza9346
    @illiakhamza9346 4 месяца назад

    Been looking how to set it up for daaaays brother, this 4 yr old video saved me god bless your soul

  • @cristighn
    @cristighn 4 года назад +1

    Thank you Ahsan for this great tutorial.

  • @grigland___625
    @grigland___625 3 года назад

    Thank you for your explaining!!!!!

  • @mm-wn7fw
    @mm-wn7fw Год назад

    great video!

  • @augustedupin8046
    @augustedupin8046 4 года назад

    good stuff

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

    Thanksssss!!!! ❤

  • @bobbytop6109
    @bobbytop6109 4 года назад

    Thankyou ashan but I have this error how to solve this ??
    (no-referrer-when-downgrade) where to add header??

  • @jibin7277
    @jibin7277 3 года назад

    have you ever deployed it into K8s and accessed it on a URL via Nginx-ingress? how do u set context path ?

  • @jithin_zac
    @jithin_zac 3 года назад +1

    How can i add ssl certs in this method

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

    Shamoon Ismail songs are dope!

  • @rodrigocalderone5226
    @rodrigocalderone5226 3 года назад

    Hello, Does CMD ["nginx","-g","daemon off"] starts NGINX service?

  • @Qhwgefrd
    @Qhwgefrd 3 года назад

    I love you

  • @hiteshagja24
    @hiteshagja24 2 года назад

    I am new to docker and I am little confused. You have setup nginx in Dockerfile, now lets assume scenario where we have multiple react apps and we want to deploy on same server so its it multiple nginx instance running on same server? correct me if I misunderstood anything.

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

    i follow your step but result in 2 separate image , can you point our my problem ?

  • @fdfs8887
    @fdfs8887 4 года назад

    I followed the tutorial but I'm seeing "Welcome to Nginx!" page vs. my app on localhost. Any thoughts on how to fix it?

    • @ahsannasir6214
      @ahsannasir6214 4 года назад +1

      It means your react build static files from "/app/build" are not copied in the "/usr/share/nginx/html". Hence, nginx shows you the default static page.
      It could either be that you missed out on line: 19 in the dockerfile OR your app wasn't built correctly. See 8:35
      If you're sure you performed the steps correctly, then you can go inside your container using
      docker exec -it {containerid} /bin/sh see docs.docker.com/engine/reference/commandline/exec/

  • @alexsandroeuzebiodasilva6872
    @alexsandroeuzebiodasilva6872 4 года назад

    Hello guys, I deployed react so that when I access the browser the screen is blank, would anyone know to tell me why?

    • @SangNguyen-bh4qq
      @SangNguyen-bh4qq 3 года назад

      you must add this code to pagekage.json file: homepage:"."

  • @RahulSam
    @RahulSam 4 года назад

    Hey Ahsan, great video. It's one of the best on this topic I found but I got an error.
    "Step 9/13 : COPY --from=build /app/build /usr/share/nginx/html
    invalid from flag value build: pull access denied for build, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"
    I was wondering if you could help me as to why this is?
    Cheers!

    • @comiatimarius9846
      @comiatimarius9846 4 года назад

      I had the same issue, try with /app/build/* /usr/share/nginx/html/

  • @anirbanchakraborty690
    @anirbanchakraborty690 4 года назад

    totally confused by the usage of 'build' in the dockerfile.. can you please clear out the confusion!

  • @0xcoder542
    @0xcoder542 3 года назад +1

    Hi Mate, thank you for contributing such great video. I was looking for the next video about the NGINX and load balancing tutorial. Would you mind to share with me the link? Thanks in advance

  • @michaelkasede1489
    @michaelkasede1489 4 года назад

    Why is the word "alpine" added to the nodejs version and nginx versions??

    • @ahsannasir6214
      @ahsannasir6214 4 года назад

      It is just a light-weight linux i use in docker.

    • @michaelkasede1489
      @michaelkasede1489 4 года назад

      @@ahsannasir6214 Thnx I read up on it.

  • @tellvivk
    @tellvivk 4 года назад +1

    I`ll suggest you rename `build` for the react node image to `react_build` to avoid confusions.

    • @anirbanchakraborty690
      @anirbanchakraborty690 4 года назад

      totally confused by the usage of 'build' in the dockerfile.. can you please clear out the confusion!

    • @tellvivk
      @tellvivk 4 года назад

      ​@@anirbanchakraborty690 the `build` at the very top is a name given to the node image, the `build` at line 15 is an npm command and the first `build` at line 19 refers to the react image defined at the top to access a folder in the path `/app/build` inside the react image. The folder `/app/build` is generated by the npm `build` command at line 15.

    • @tellvivk
      @tellvivk 4 года назад

      @@anirbanchakraborty690 check this gist if you are still confused - gist.github.com/blaZ3/239f27daf76857e4a0417490b3896c08

    • @ahsannasir6214
      @ahsannasir6214 4 года назад +1

      The keyword "as" should be enough to fix the confusion as "build" is just an alias used for the Node Image. Besides, no worries, I've updated the github!

  • @hetanshusonar9368
    @hetanshusonar9368 4 года назад

    Hii bro i really liked your vdo and earlier i came to know that u r currently in germany plz can help me can you contact me in personally bcoz im also from india and im planning to do further studies in germany so i have some questions about this so plz can i contact you personally