如何在 Heroku 上为我的 .net 核心网站配置 Postgres API
How to configure Postgres on Heroku for my .net core web API
我已在 Heroku 上成功部署了 .net 核心网络 API,但该应用程序无法启动。当我尝试 运行 应用程序时,出现以下错误:
错误 R10(启动超时)-> Web 进程在启动后 60 秒内无法绑定到 $PORT
这里是连接字符串我的.net核心代码
"ConnectionStrings": {
"DromiContext": "User=user;Password=password;Host=host;Port=5432;Database=database;Integrated Security=true;Pooling=true;"
}
相关问题
Heroku + node.js error (Web process failed to bind to $PORT within 60 seconds of launch)
该应用未配置为 运行 自动迁移。更新后
`
using (var serviceScope = services.BuildServiceProvider().GetService<IServiceScopeFactory>().CreateScope())
{
var context = serviceScope.ServiceProvider.GetRequiredService<DromiContext>();
context.Database.Migrate();
}
`
错误消失
我已在 Heroku 上成功部署了 .net 核心网络 API,但该应用程序无法启动。当我尝试 运行 应用程序时,出现以下错误: 错误 R10(启动超时)-> Web 进程在启动后 60 秒内无法绑定到 $PORT
这里是连接字符串我的.net核心代码
"ConnectionStrings": {
"DromiContext": "User=user;Password=password;Host=host;Port=5432;Database=database;Integrated Security=true;Pooling=true;"
}
相关问题 Heroku + node.js error (Web process failed to bind to $PORT within 60 seconds of launch)
该应用未配置为 运行 自动迁移。更新后
`
using (var serviceScope = services.BuildServiceProvider().GetService<IServiceScopeFactory>().CreateScope())
{
var context = serviceScope.ServiceProvider.GetRequiredService<DromiContext>();
context.Database.Migrate();
}
`
错误消失