如何在Bluehost中发布我的NUXT应用
我想在纱线构建生成生产站点时,然后访问 .nuxt
目录以将所有内容复制到我的Blue -Host HTML文件夹中,我只会获得纯文本,而不是运行您可以在这里看到的网站。
tecnoeducacion.online
请告诉我,在 yarn build build
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
纱线生成
是SSG(target:'static'
),如果要托管一些静态文件。它基本上是jamstack,可在github页面/netlify/heroku等上托管。More info here: https://nuxtjs.org/docs/concepts/static-site-生成
YARN BUILD
用于SSR(target:'server'
),它需要一个node.js服务器,并将按需在服务器上生成所有页面。更多信息在这里: https://nuxtps:/nuxtjs.s.org/docs/docs/docs/concepts/concepts/side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-side-in-side-side-side-side-side-side-side-side一下渲染
yarn generate
is for SSG (target: 'static'
), if you want to host some static files. It's basically JAMstack and hostable on Github pages/Netlify/Heroku etc.More info here: https://nuxtjs.org/docs/concepts/static-site-generation
yarn build
is for SSR (target: 'server'
), it requires a Node.js server and will generate all the pages on demand on the server.More info here: https://nuxtjs.org/docs/concepts/server-side-rendering
我不得不将其纱化而不是纱线构建来使其起作用,但是如果有人可以解释一个命令的区别,那就很好
I had to Yarn Generate, instead of Yarn build, to make it work, but would be good if anybody could explain the difference of one to the other command