无法将 nuxt 应用程序部署到数字海洋健康检查
Unable to deploy nuxt app to digital ocean health checks
我创建了一个简单且基本的 nuxt 应用程序,然后从终端将其推送到 github 存储库。然后我做了 link 我对数字海洋应用程序功能的回购,所以它部署了它。构建成功但启动未启动,我收到以下错误
Deploy Error: Health Checks
Common Causes
App is running slower than expected
Component Issues
apptest - failed to deploy
请注意,我没有配置环境变量,我将其保留为默认设置。这样做很重要吗?
编辑:这是 nuxt js 配置
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: {
}
}
数字海洋日志卡在这里
[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/
本文帮助我完成了 Nuxt.js 应用程序的先前设置:
Deploy Nuxt.js on DigitalOcean App Platform
正如那里提到的,它需要设置 运行 命令并为应用程序指定 host/port(默认情况下它在 http://localhost:3000 上启动):
npm start -- --hostname 0.0.0.0 --port 8080
我创建了一个简单且基本的 nuxt 应用程序,然后从终端将其推送到 github 存储库。然后我做了 link 我对数字海洋应用程序功能的回购,所以它部署了它。构建成功但启动未启动,我收到以下错误
Deploy Error: Health Checks
Common Causes
App is running slower than expected
Component Issues
apptest - failed to deploy
请注意,我没有配置环境变量,我将其保留为默认设置。这样做很重要吗?
编辑:这是 nuxt js 配置
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: {
}
}
数字海洋日志卡在这里
[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/
本文帮助我完成了 Nuxt.js 应用程序的先前设置: Deploy Nuxt.js on DigitalOcean App Platform
正如那里提到的,它需要设置 运行 命令并为应用程序指定 host/port(默认情况下它在 http://localhost:3000 上启动):
npm start -- --hostname 0.0.0.0 --port 8080