我在Heroku上部署了一个PHP应用程序,但我似乎找不到apache错误日志.使用该命令$heroku logs我似乎只获得apache访问日志.所以一堆GET 200 OK等,但没有错误信息在本地放入错误日志,例如'PHP Fatal error:blah blah '
我在哪里可以访问Heroku上的这些错误日志,或者如何告诉应用程序写入Heroku的日志,就像本地错误日志一样?
我觉得我忽略了一些显而易见的东西,但我似乎无法找到解决方案.
我正在ASP.NET Core 2.1中启动一个Razor页面项目.我正在尝试使用SQLite,但在配置数据库时,只有SQL Server似乎是一个选项.
Startup.cs
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Application.Models;
using Microsoft.EntityFrameworkCore;
namespace Application
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<ApplicationContext>(options =>
options.UseSqlite("Data Source=Database.db"));
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
}
// This method gets called by the runtime. Use this method to …Run Code Online (Sandbox Code Playgroud)