首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法将nuxt应用程序部署到数字海洋健康检查

无法将nuxt应用程序部署到数字海洋健康检查
EN

Stack Overflow用户
提问于 2021-09-11 09:27:02
回答 1查看 1.3K关注 0票数 2

我创建了一个简单和基本的nuxt应用程序,然后从终端,我把它推到github回购。然后,我把我的回购和数字海洋应用程序的功能联系起来,所以它部署了它。构建是成功的,但是启动没有启动,我得到以下错误

代码语言:javascript
复制
Deploy Error: Health Checks
Common Causes
App is running slower than expected
Component Issues
apptest - failed to deploy

请注意,我没有配置环境变量,而是将其留给默认设置。这样做重要吗?

编辑:这是nuxt配置

代码语言:javascript
复制
export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: 'apptest',
    htmlAttrs: {
      lang: 'en'
    },
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '' },
      { name: 'format-detection', content: 'telephone=no' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [
  ],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    // https://go.nuxtjs.dev/bootstrap
    'bootstrap-vue/nuxt',
  ],

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
  }
}

数字海洋日志卡在这里

代码语言:javascript
复制
[appnuxt] [2021-09-11 10:47:59] yarn run v1.22.11
[appnuxt] [2021-09-11 10:47:59] $ nuxt start
[appnuxt] [2021-09-11 10:48:01] ℹ Listening on: http://localhost:8080/
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-09-17 07:49:45

本文帮助我完成了Nuxt.js应用程序的先前设置:在Nuxt.js应用平台上部署DigitalOcean

如前所述,它需要设置run命令,指定应用程序的主机/端口(默认情况下它在http://localhost:3000上启动):

代码语言:javascript
复制
npm start -- --hostname 0.0.0.0 --port 8080
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69141697

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档