-1

I have successfully deployed a .net core web API on Heroku, but the app fails to launch. When I attempt to run the app, I get the error below: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

Here is the connection string my .net core code

"ConnectionStrings": {
"DromiContext": "User=user;Password=password;Host=host;Port=5432;Database=database;Integrated Security=true;Pooling=true;"

}

Related Question Heroku + node.js error (Web process failed to bind to $PORT within 60 seconds of launch)

DMT
  • 57
  • 2
  • 9
  • Welcome to Stack Overflow. Please take a couple minute to review [How To Ask](https://stackoverflow.com/help/how-to-ask). Your question is missing a good amount of crucial information. Please try adding tags for the relevant frameworks/languages you're using and edit your question to include helpful information like the application code that starts your webserver and anything else that might be relevant. – RangerRanger Nov 19 '18 at 18:21

1 Answers1

0

The app was not configured to run migration automatically. After it was updated

`

using (var serviceScope = services.BuildServiceProvider().GetService<IServiceScopeFactory>().CreateScope())
            {
                var context = serviceScope.ServiceProvider.GetRequiredService<DromiContext>();
                context.Database.Migrate();
            }

`

The error disappeared

DMT
  • 57
  • 2
  • 9