Skip to content

Commit d537a39

Browse files
committed
Fixed .gitignore.
Description: - Fixed .gitignore; - Added .env file in repo. Signed-off-by: Pavel Kirilin <win10@list.ru>
1 parent b283b01 commit d537a39

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ celerybeat.pid
107107
*.sage.py
108108

109109
# Environments
110-
.env
111110
.venv
112111
env/
113112
venv/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
LOG_LEVEL=Debug
2+
POSTGRES_HOST=db
3+
POSTGRES_PORT=5432
4+
POSTGRES_DB={{cookiecutter.project_name}}_db
5+
POSTGRES_USER={{cookiecutter.project_name}}
6+
POSTGRES_PASSWORD={{cookiecutter.postgres_password}}
7+
{% if cookiecutter.add_redis == "True" -%}
8+
REDIS_PASSWORD={{cookiecutter.redis_password}}
9+
REDIS_HOST=redis
10+
REDIS_PORT=6379
11+
{% endif %}
12+
{% if cookiecutter.add_scheduler == "True" -%}
13+
SCHEDULE_TIMER=20
14+
{% endif %}
15+
{% if cookiecutter.add_elastic_search == "True" -%}
16+
ELASTIC_HOST=http://es:9200
17+
{% endif %}

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "fastapi_template"
3-
version = "1.1.8"
3+
version = "1.2.0"
44
description = "Feature-rich robust FastAPI template"
55
authors = ["Pavel Kirilin <win10@list.ru>"]
66
packages = [
@@ -26,7 +26,7 @@ pygit2 = "^1.4.0"
2626
[tool.poetry.dev-dependencies]
2727

2828
[tool.poetry.scripts]
29-
fastapi_template = "fastapi_template:main"
29+
fastapi_template = "fastapi_template.main:main"
3030

3131
[build-system]
3232
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)