DEV Community

Cover image for Deploy Nuxt.js on DigitalOcean App Platform in 5 minutes or less

Deploy Nuxt.js on DigitalOcean App Platform in 5 minutes or less

Till Sanders on February 03, 2021

I recently find myself deploying more and more projects using the DigitalOcean App Platform because it is so damn quick. I love writing Dockerfiles...
Collapse
 
astrowq profile image
Ludwig

thanks a lot. I got stuck at the health check part for several hours!

Collapse
 
tillsanders profile image
Till Sanders

Yeah, that was basically the whole point why I wrote this article. Good to know, it was worth it! Took me a while to figure that out, too.

Collapse
 
briancaffey profile image
Brian Caffey

Thanks for the article! I’m curious if you are using another backend with Nuxt. I recently got into Nuxt and I use Django as a backend REST API. I didn’t want to use App Platform because I would need to pay for both a Django “app” and a Nuxt “app”, in addition to any other apps/components I need (redis, Postgres, async workers). Maybe I’m thinking about DOAP the wrong way but for now I’m still deploying my apps on droplets using the docker Droplet machine image with docker swarm.

Collapse
 
tillsanders profile image
Till Sanders

Yeah, I'm using Nuxt for the frontend and it communicates with a Laravel API that is also deployed using App Platform. As far as I know, the only way to do this is to pay for both deployments separately. So it is more expensive than a droplet. But when I think about the time this solution saves me, it weighs out the extra costs for me. With a droplet, I would need to set up the environment, continuous deployment, and maintain those. It's not hard, but I feel like my time is better spent on the project itself.

Collapse
 
shoxsz profile image
Paulo Márcio

That saved me, I found this post through a stackoverflow answer, the only bad thing about this, is that they should configure this command automatically, I mean, if digital ocean knows the app is a Nuxt app, and we ALWAYS have to configure the same thing, then why isn't it in the default script?

Collapse
 
sosog profile image
Soso Gvritishvili

Thanks for help, i had problem with npm start :))

Collapse
 
qwe12e profile image
Arif Tunahan Deniz

Thank youu! I was stuck with health checks for hours. Finally fixed it.

Collapse
 
zanio profile image
ANIEFIOK AKPAN

thanks so much for this article

Collapse
 
spirico profile image
Max Druzhinin

Thanks a lot Till!
This article helped me with health stage as well.
Have a great day!

Collapse
 
ebenezerw profile image
Ebenezer Williams

Thank You!!

Collapse
 
riddvanjs profile image
riddvanjs

awesome!!

Collapse
 
meisam profile image
Meisam Mulla

For those wondering both sets of -- need to be there otherwise it won't work. So "npm start -- --hostname 0.0.0.0"