[英]Deploying Nuxt Universal project - is the whole .nuxt folder necessary?
I have run the npm run build
and it has created the dist
folder in the .nuxt
directory.我已经运行了
npm run build
,它在.nuxt
目录中创建了dist
文件夹。 Do I need just the dist
folder in production, or should I include the whole .nuxt
directory?我是否只需要生产中的
dist
文件夹,还是应该包含整个.nuxt
目录?
Yes, I think you need the whole .nuxt folder.是的,我认为您需要整个 .nuxt 文件夹。 Your web root should look something like this:
您的 Web 根目录应如下所示:
Just checked on my server.刚刚检查了我的服务器。 This might be true only for Amazon Beanstalk...
这可能仅适用于 Amazon Beanstalk...
After running npm run build
on my development computer, I needed the following on the server:在我的开发计算机上运行
npm run build
后,我需要在服务器上执行以下操作:
.nuxt/dist/
static/
server/
or server.js
- depends on setup server/
或server.js
- 取决于设置package.json
package-lock.json
nuxt.config.conf
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.