Two Irresistible Ways To Deploy Your Nuxt.js Application (Universal and Static)

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 82

  • @ProgramWithErik
    @ProgramWithErik  4 роки тому +3

    🚨 IMPORTANT:
    Cllick here For the Nuxt Course : bit.ly/2LalQka

  • @morphman86
    @morphman86 3 роки тому

    For Nginx, when you just want to refresh the config file(s), you can run
    sudo nginx -s reload
    instead of stopping and starting the service. This will do a "soft reload", where it will stop and start only the refreshable services, or halt on any errors. It will not bail all services on error, only the one(s) that error out.
    For example, if you got 2 configs and you make a mistake on one of them, only the failed config will be unavailable, while the other still runs.
    This is much safer for production environments, where you might have dozens of customer configs. You don't want all customer sites to go down just because you made one mistake in one customer's file :)

  • @toadkicker1
    @toadkicker1 6 років тому +9

    Instead of modifying the default nginx file, make a new one and move default out of the way. That way if something bad happens and nginx needs to be troubleshot you can fall back to it.

  • @BansuriVoyage
    @BansuriVoyage 5 років тому +1

    how one is suppose to deploy this on a regular basis? whats a good workflow to do this after a code update.?

  • @DhevunooriSupriya
    @DhevunooriSupriya Рік тому

    Hello Erik, that's awesome you explain the things in a very easy way. can you please confirm the thing about global CSS files after build, in nuxt/dist folder there is no CSS folder is there, when I try to deploy my Nuxt app on Gcloud app engine, it is giving error like app.css file is missing. Please help me out with this.

  • @kaviarasan4999
    @kaviarasan4999 3 роки тому

    This is the video I am looking for over a week. Thank you very much ❤ keep doing ✨

  • @gurmukhsingh-uh5qo
    @gurmukhsingh-uh5qo 2 роки тому

    thank you for this tutorial and your time. great work

  • @JamesAutoDude
    @JamesAutoDude 2 роки тому

    On static, if I refresh the page or go to a specific /page, the app breaks...

  • @ianjaybronola1604
    @ianjaybronola1604 3 роки тому

    Hi Eric, I'm using a ubuntu droplet from digitalocean. I followed your steps and got my site up, but I'm experiencing some problems with my images. They all return 404 error as well as some js files from the build. What could I have done wrong?

  • @pazfelipe
    @pazfelipe 4 роки тому

    It didn't work for me. I'm using Fedora 33 and there's no any folder named sites-* . I've enterily followed your tutorial but even so I've only an error from nginx.

  • @ThePri1707
    @ThePri1707 4 роки тому +1

    Hey Erik, thanks for the amazing video. This video is the closest thing I have come across for deploying Nuxt with Nginx on EC2's Ubuntu instance. I wanted to ask you that if I had an AWS EC2 Ubuntu instance the deployment process should be pretty much the same right?

  • @abhishekchauhan22
    @abhishekchauhan22 3 роки тому

    If you are creating a new NGINX config file instead of using the default config file then you'll need to make a symblic link of the file in the sites available folder too

  • @youssefvideotube
    @youssefvideotube 4 роки тому

    I was wondering how to get a nuxtjs app working with apache2, but since you explain how to do it with nginx as reverse proxy I'm good to go, so thank you!

  • @Asgallu
    @Asgallu 4 роки тому

    Hi, great video, is nuxsj responsive by default?, thanks

  • @programadorquipubyte6719
    @programadorquipubyte6719 5 років тому

    Hello Erik, how are u? Do u have any idea if these steps can be archive using IIS?

  • @willberg12
    @willberg12 4 роки тому

    Thanks man. Been stuck on this for a couple hours. I think my main problem was that I was trying to use Apache instead of Nginx

  • @jimson7070
    @jimson7070 3 роки тому

    you are a HERO.

  • @dharamjeetsingh9163
    @dharamjeetsingh9163 3 роки тому

    i want to deploy my nuxt app on aws server (apache)

  • @biansoralmerol4272
    @biansoralmerol4272 5 років тому +1

    I tried, and it was fun thanks

  • @chordfunc3072
    @chordfunc3072 6 років тому +6

    Hey Erik :) Love your videos :D Maybe you could do an in-depth video on deploying an SSR app on firebase hosting using cloud functions? Im sure there are plenty of people looking for a good tutorial!

    • @ProgramWithErik
      @ProgramWithErik  6 років тому +3

      Yeah that's a good idea! I'll look into it.

    • @JFkingW
      @JFkingW 6 років тому

      Yes I would really appreciate this aswell!

    • @alexisenp
      @alexisenp 6 років тому

      Im searching for that too.

    • @andriyfm
      @andriyfm 5 років тому

      i am agree

    • @jajasaria
      @jajasaria 5 років тому

      nice idea. hope you could make a video on this erik.

  • @nilnfa
    @nilnfa 5 років тому +1

    Thanks for de content. Helped me a lot

  • @manuelpascual7063
    @manuelpascual7063 4 роки тому

    Does not work for me Erik! I did the exact same thing as you but on Digital Ocean. When I go to my domain the browser says "The page is not being redirected correctly"..

  • @sihoonkim1502
    @sihoonkim1502 5 років тому

    Nice video! finally deployed nuxt on ec2. Just from curiosity, I understand that in this case, the purpose of using nginx is to redirect port 80 to 3000. But I dont understand why I cant just change the port from 3000 to 80 without nginx("start": "PORT 80 nuxt start". Then you could "sudo npm start". On the console everything seemed to be working fine, but I couldnt access the server with port 80. With my node.js backend forcing port 80 with the script worked fine.

    • @ProgramWithErik
      @ProgramWithErik  5 років тому +1

      Nginx is more powerful then using npm start. It's a better server, and it's more flexible in the future.

    • @damodarNaidu
      @damodarNaidu 4 роки тому

      Hi. I wanna host my nuxt app on EC2. Can you provide some links of articles or video tutorials for reference?

  • @ramstein74
    @ramstein74 6 років тому

    Sorry Erik but just there is one paramenter you forgot to mention. in nuxt.config.js the mode:"universal" or mode:"spa"
    I´m not an expert but i think i can do npm run build either with mode "spa" or "universal"
    Can you clarify on this?
    Thank you

    • @ProgramWithErik
      @ProgramWithErik  6 років тому +1

      It defaults to universal. You can change it to spa if you don't want to use it as a universal app...

  • @JFkingW
    @JFkingW 6 років тому +3

    Im really overwealmed by all this deployment for SSR websites. It seems so complicated for a beginner like me. I just want my website build with vue & nuxt to be SEO friendly. Also what is Static content? Why shouldn‘t I use npm run generate and upload the dist folder to a hosting like firebase? There is just so little Well explained Information on UA-cam and other platforms...

    • @pawieplays
      @pawieplays 6 років тому +2

      J fking W you run the generate command if you have just plain static html files, which is bad if you have dynamic contents and routes that comes from the api as the new data aren't generated yet. So if you have a new data on your api you have to run the command npm run generate again to create a static file for that dynamic data.
      And try to use netlify to deploy static html pages.

  • @savasturkoglu7569
    @savasturkoglu7569 5 років тому

    Thanks for this nice work Eric

  • @tim_t
    @tim_t 6 років тому

    Hi Erik. May I know what theme you're using for your VSCode?

    • @ProgramWithErik
      @ProgramWithErik  6 років тому +1

      Winter is coming! For my light theme.

    • @tim_t
      @tim_t 6 років тому

      Thanks, Erik!

  • @iqazii
    @iqazii 6 років тому

    Hi Erik. Thanks for the tutorial. After install PM2 the website is running OK. But i am struggling to run PM2 resurrect, after the server reboot. I tried all the available options but its not working. Can u make a video on the auto start of PM2 resurrect command. Thanks

    • @ProgramWithErik
      @ProgramWithErik  6 років тому

      I'll look into it!

    • @iqazii
      @iqazii 6 років тому

      @@ProgramWithErik For those who are interested, I also found that pm2 start npm -- start command won't work in windows 10. For more info stackoverflow.com/questions/50027163/pm2-start-npm-start-error

  • @alejandrocarvajal9068
    @alejandrocarvajal9068 4 роки тому

    It works perfectly good, have you try to hide the port using HTTPS config?

  • @КостяСкейтеров
    @КостяСкейтеров 4 роки тому

    is there an nginx tutorial?
    i have my application on server, but i need to find away to serve it on VPS server

    • @Asgallu
      @Asgallu 4 роки тому

      Hi, I have the same problem, and I would like to find a solution. Did you find one?, pls share if so.

    • @КостяСкейтеров
      @КостяСкейтеров 4 роки тому

      @@Asgallu Yes, I did. I followed this tutorial
      ua-cam.com/video/rVZo2FAjXtA/v-deo.html

  • @sportly-vlog
    @sportly-vlog 6 років тому +1

    Why do we need to install python on a server besides npm? just wondering.

    • @ProgramWithErik
      @ProgramWithErik  6 років тому

      Jinseok Oh I believe to build the package.json

    • @Sunil-kq9bx
      @Sunil-kq9bx 5 років тому

      @John Wanyoike node needs it

    • @Sunil-kq9bx
      @Sunil-kq9bx 5 років тому

      @John Wanyoike np bro

    • @Sunil-kq9bx
      @Sunil-kq9bx 5 років тому

      @John Wanyoike ooh i meant to say no problem bro :)

    • @ozanmuyes
      @ozanmuyes 5 років тому

      @John Wanyoike Hi John, how did you manage it?

  • @limsocheat
    @limsocheat 5 років тому

    how to deploy on apache2 server?

  • @thinksabbir
    @thinksabbir 5 років тому

    Great video.
    If possible please do one, with AWS Lambda.

  • @SurinderSingh-ds3qw
    @SurinderSingh-ds3qw 6 років тому

    Hey Erik, Amazing video. I was looking forward for this kind of video from long time. I have setup server as you explained but was not really sure about correct way. After watching you video I'm very much confident. Thank you very for this video!
    I'm have an issue with Nuxt while deployment and want to discuss it with you.
    I'm working bit large application which takes 4-5 mins to get build on AWS lightsail so the issue happens when I visit my website while deployment is on and file building is almost 90% done then website start throwing 404 errors of many JS files like app.js, vendor.js and broke my website for 1-2 mins which is not good. Can you share your thoughts on it and whats the best way to fix that?

    • @ProgramWithErik
      @ProgramWithErik  6 років тому

      Surinder Singh thanks, are you waiting until it’s done building before you visit?

    • @SurinderSingh-ds3qw
      @SurinderSingh-ds3qw 6 років тому

      yah we did not realise that earlier but now few days ago we make site live and customer support comes few issues that users complaining about broken site. So we debug that get to that its broken when we deploying something on production server.

    • @SurinderSingh-ds3qw
      @SurinderSingh-ds3qw 6 років тому

      prnt.sc/koef1o

  • @nested9301
    @nested9301 Рік тому

    s*it frontend is so hard let me revert back to jquery pls

  • @alainmucyo4848
    @alainmucyo4848 5 років тому +1

    Thanks a lot!!

  • @talgis4169
    @talgis4169 6 років тому

    nice work!

  • @turgaysarioglu806
    @turgaysarioglu806 4 роки тому

    SSL????

  • @mahmudgad9923
    @mahmudgad9923 4 роки тому

    thank you man

  • @edwardanugent
    @edwardanugent 4 роки тому

    This did not work for me

  • @bovc8698
    @bovc8698 5 років тому

    Thanks!

  • @Trinita1970
    @Trinita1970 2 роки тому

    merci

  • @Steklopod
    @Steklopod 5 років тому

    Thank u