Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuxtjs - What files /folders do you need to deploy production version on host

Tags:

vue.js

nuxt.js

https://nuxtjs.org/guide/commands#development-environment

There is no mention of the files required by Nuxt when deploying it to live hosting.

Using Nuxt CLI, creates several empty folders such as

assets components layouts pages server

Using npm build .nuxt folder is created - do i simply upload the content of the full folder or are the dist folder….????

I have tried several combinations of uploading the full contents of .nuxt vs only parts. I havent had any luck.

like image 218
Jujubes Avatar asked Mar 28 '19 18:03

Jujubes


People also ask

What is .nuxt folder?

nuxt folder: The router. js file is the generated router file that Nuxt generates for you when you put . vue files inside the pages folder. You can use this file for debugging for when you want to look up which routes are generated for vue-router and find out the names of a specific route.

How do you make a nuxt project?

To get started quickly we can use the create-nuxt-app. I'm going to use yarn, but you could use NPM or NPX. In our terminal, type yarn create nuxt-app. followed by the name of your application.


1 Answers

You need .nuxt folder, static folder, your nuxt.config.js and a node_modules directory for deployment in universal mode

For deploying on plesk you can see this example https://github.com/pi0/nuxt-plesk-example

like image 77
Aldarund Avatar answered Sep 30 '22 05:09

Aldarund