tanacchi / line_akinator

LINE Bot でアキネーターを実装してみた.
https://tanakinator.herokuapp.com/
MIT License
4 stars 1 forks source link

Setup for database #10

Closed tanacchi closed 4 years ago

tanacchi commented 4 years ago

データベース操作を可能にした.

Heroku Postgres (addon)を追加. 環境変数 DATABASE_URL に url を設定. 設定しなかった場合はローカルに local.db が生成される. .db ファイルは sqllite3 コマンドで操作できる.

Heroku Postgres を直接操作する場合は heroku pg:psql コマンドを使う.

テーブルの初期設定は python インタプリタから tanakinator.models.init を実行.