-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description: - Fixed .gitignore; - Added .env file in repo. Signed-off-by: Pavel Kirilin <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,6 @@ celerybeat.pid | |
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
|
17 changes: 17 additions & 0 deletions
17
fastapi_template/template/{{cookiecutter.project_name}}/envs/.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
LOG_LEVEL=Debug | ||
POSTGRES_HOST=db | ||
POSTGRES_PORT=5432 | ||
POSTGRES_DB={{cookiecutter.project_name}}_db | ||
POSTGRES_USER={{cookiecutter.project_name}} | ||
POSTGRES_PASSWORD={{cookiecutter.postgres_password}} | ||
{% if cookiecutter.add_redis == "True" -%} | ||
REDIS_PASSWORD={{cookiecutter.redis_password}} | ||
REDIS_HOST=redis | ||
REDIS_PORT=6379 | ||
{% endif %} | ||
{% if cookiecutter.add_scheduler == "True" -%} | ||
SCHEDULE_TIMER=20 | ||
{% endif %} | ||
{% if cookiecutter.add_elastic_search == "True" -%} | ||
ELASTIC_HOST=http://es:9200 | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "fastapi_template" | ||
version = "1.1.8" | ||
version = "1.2.0" | ||
description = "Feature-rich robust FastAPI template" | ||
authors = ["Pavel Kirilin <[email protected]>"] | ||
packages = [ | ||
|
@@ -26,7 +26,7 @@ pygit2 = "^1.4.0" | |
[tool.poetry.dev-dependencies] | ||
|
||
[tool.poetry.scripts] | ||
fastapi_template = "fastapi_template:main" | ||
fastapi_template = "fastapi_template.main:main" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|