Skip to content

Instantly share code, notes, and snippets.

@pypeach
Last active May 1, 2018 04:10
Show Gist options
  • Save pypeach/bc0dd5ee2a8001c1ef89c99d1df7a2d3 to your computer and use it in GitHub Desktop.
Save pypeach/bc0dd5ee2a8001c1ef89c99d1df7a2d3 to your computer and use it in GitHub Desktop.
アプリケーション設定ファイル
##################################################
## データファイルのプロパティ
##################################################
# データ(添付ファイル等)ファイルのディレクトリパス
data_path: {$python_path}/data/
##################################################
## ログファイルのプロパティ
##################################################
# ログファイルのディレクトリパス
log_path: {$python_path}/log/
# ログファイル
log_file: pypeach.log
# ログファイル(バックアップ)
backup_log_file: pypeach_{$today_dt}.log
# ログファイル(過去ファイル削除)
find_delete_log_file: pypeach_*
# ログファイルの廃棄期間
delete_days_log_file: 30
##################################################
## DBファイルのプロパティ
##################################################
# DB(SQLLite)パス
db_path: {$python_path}/db/
# DB(SQLLite)のファイル
db_file: pypeach.db
# テーブル初期化有無
db_schema_initialize: true
# テーブル初期化Sqlファイル
db_schema_file: schema.sql
##################################################
## メールのプロパティ
##################################################
# メールテンプレートファイルのディレクトリパス
mail_template_path: {$python_path}/template/mail/
# メール送信有無
mail_debug_mode: true
# SMTPユーザ
mail_user: pypeach
# SMTPパスワード
mail_password: pypeach
# SMTPポート番号
mail_port: 25
# SMTPホスト名
mail_host: example.com
# メールアドレスFrom
mail_from: pypeach@example.com
# メールアドレスTo
mail_to: pypeach-test@example.com
##################################################
## テストのプロパティ
##################################################
# テストパス
test_path: {$python_path}/test/
# 検証で使用するSQLファイルのディレクトリパス
test_sql_path: {$python_path}/test/sql/
# 検証で使用するデータファイルのディレクトリパス
test_data_path: {$python_path}/test/data/
@pypeach
Copy link
Author

pypeach commented Mar 28, 2018

以下を追加した
・ブロックコメント
・ログファイルのバックアップで使用するプロパティ

@pypeach
Copy link
Author

pypeach commented Apr 23, 2018

見やすくするためdata_pathを先頭レコードに修正した

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment