> For the complete documentation index, see [llms.txt](https://devlog.joonas.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devlog.joonas.io/logs-etc/2021-12-07.md).

# 2021/12/07

## SQLite on Heroku

{% embed url="<https://devcenter.heroku.com/articles/sqlite3>" %}

간단한 Python/Flask 앱을 배포하려고 했는데, 계속 500 에러가 났다. 로컬에서는 잘 되는데, Heroku에서의 환경이 의심되었고 정말 한 줄씩 원인을 찾았다.

production 환경에 적합하지 않다는 이유로, Heroku에서 지원하지 않고 PostgreSQL를 제공하고 있다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://devlog.joonas.io/logs-etc/2021-12-07.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
