feat: init gitpython and infrastructure app

pull/1/head
Aravinth Manivannan 2022-06-24 20:33:32 +05:30
parent 19ed720b82
commit 04ec4037a9
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
4 changed files with 18 additions and 5 deletions

View File

@ -33,11 +33,12 @@ help: ## Prints help for targets with comments
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
lint: ## Run linter
@./venv/bin/black ./dashboard/*
@./venv/bin/black ./accounts/*
@./venv/bin/black ./dash/*
@./venv/bin/black ./support/*
@./venv/bin/black ./billing/*
@./venv/bin/black ./dashboard/
@./venv/bin/black ./accounts/
@./venv/bin/black ./dash/
@./venv/bin/black ./support/
@./venv/bin/black ./billing/
@./venv/bin/black ./infrastructure/
migrate: ## Run migrations
$(call run_migrations)

View File

@ -47,6 +47,7 @@ INSTALLED_APPS = [
"oauth2_provider",
"payments",
"billing",
"infrastructure",
]
MIDDLEWARE = [
@ -177,6 +178,13 @@ HOSTEA = {
# ref: https://gitea.hostea.org/Hostea/july-mvp/issues/17
"SUPPORT_REPOSITORY": "support",
},
"INFRA": {
"HOSTEA_REPO": {
"PATH": "/srv/hostea/dashboard/infrastructure",
"REMOTE": "git@localhost:Hostea/enough.git",
"SSH_KEY": "/srv/hostea/deploy",
}
},
}
EMAIL_CONFIG = env.email("EMAIL_URL", default="smtp://admin:password@localhost:10025")

View File

@ -23,5 +23,6 @@ urlpatterns = [
path("admin/", admin.site.urls),
path("dash/", include("dash.urls")),
path("support/", include("support.urls")),
path("infra/", include("infrastructure.urls")),
path("", include("accounts.urls")),
]

View File

@ -14,6 +14,8 @@ django-oauth-toolkit==2.0.0
django-payments==1.0.0
django-phonenumber-field==6.3.0
djangorestframework==3.13.1
gitdb==4.0.9
GitPython==3.1.27
greenlet==1.1.2
idna==3.3
isort==5.10.1
@ -34,6 +36,7 @@ pylint==2.12.2
pynvim==0.4.3
pytz==2022.1
requests==2.27.1
smmap==5.0.0
sqlparse==0.4.2
stripe==3.4.0
tblib==1.7.0