Skip to content

Commit

Permalink
Fixed .gitignore.
Browse files Browse the repository at this point in the history
Description:
- Fixed .gitignore;
- Added .env file in repo.

Signed-off-by: Pavel Kirilin <[email protected]>
  • Loading branch information
s3rius committed Nov 15, 2020
1 parent b283b01 commit d537a39
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ celerybeat.pid
*.sage.py

# Environments
.env
.venv
env/
venv/
Expand Down
17 changes: 17 additions & 0 deletions fastapi_template/template/{{cookiecutter.project_name}}/envs/.env
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 %}
4 changes: 2 additions & 2 deletions pyproject.toml
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 = [
Expand All @@ -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"]
Expand Down

0 comments on commit d537a39

Please sign in to comment.