如何在Bluehost中发布我的NUXT应用

发布于 2025-01-26 19:50:59 字数 336 浏览 2 评论 0 原文

I want to publish my site in Bluehost.
When I generate the production site with yarn build, and then accessing the .nuxt directory to copy all the contents to my bluehost html folder I get just plain text and not the Running site as you can see here.
tecnoeducacion.online

Please tell me if there are more configuration steps before yarn build

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

紫南 2025-02-02 19:50:59

纱线生成是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

缱倦旧时光 2025-02-02 19:50:59

我不得不将其纱化而不是纱线构建来使其起作用,但是如果有人可以解释一个命令的区别,那就很好

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文