Azure上的Strapi无法运行 [英] Strapi on Azure does not run
问题描述
我正在使用最新版本的bandi(v3.x)和Node v10.15.2.我正在尝试使用此server.js配置部署到Azure Web App.
I am using the lastest version of strapi (v3.x)with Node v10.15.2. I am trying to deploy to Azure Web App using this server.js configuration.
module.exports = ({ env }) => ({
host: env('HOST', 'localhost'),
port: env.int('PORT', 1337),
url: 'https://clinicaback.azurewebsites.net',
cron: {
enabled: false
},
admin: {
url: "/dashboard",
autoOpen: false,
build: {
backend: "https://clinicaback.azurewebsites.net"
}
}
});
它构建成功,并且似乎正在与开发配置一起运行.这是Azure的kudu服务的输出
It build successful and seems like is running with the development configuration. Here is the output from Azure's kudu service
但是当我进入网站时,它不会加载.并且我运行了诊断并解决了Azure的问题,并显示了这一点...
but when I enter to the website, it does not load. and I ran Diagnose and solve problems from Azure and it's showing this...
推荐答案
该Web应用仅支持端口80和端口443.建议修改代码中的相关端口设置.
The webapp only supports port 80 and port 443. It is recommended to modify the relevant port settings in your code.
建议在构建后释放代码,将 npx serve -s
添加为 App Service>的启动命令;常规设置
.
It is recommended to release the code after build, add npx serve -s
as Startup Command for your App Service> General settings
.
这篇关于Azure上的Strapi无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!