├── .dockerignore ├── .github └── workflows │ ├── all.yaml │ ├── container.yaml │ ├── infra.yaml │ ├── mysql-init.yaml │ ├── staticfiles.yaml │ ├── test-django-mysql.yaml │ └── test-django-postgres.yaml ├── .gitignore ├── .vscode └── settings.json ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── articles ├── __init__.py ├── admin.py ├── apps.py ├── management │ ├── __init__.py │ └── commands │ │ ├── __init__.py │ │ └── backup_articles.py ├── migrations │ ├── 0001_initial.py │ ├── 0002_article_updated_by.py │ └── __init__.py ├── models.py ├── templates │ └── articles │ │ ├── article_detail.html │ │ └── article_list.html ├── tests.py ├── urls.py ├── utils.py └── views.py ├── cfe-django-blog.code-workspace ├── cfeblog ├── __init__.py ├── asgi.py ├── dbs │ ├── __init__.py │ ├── mysql.py │ └── postgres.py ├── settings.py ├── storages │ ├── __init__.py │ ├── backends.py │ ├── client.py │ ├── conf.py │ ├── mixins.py │ └── services │ │ ├── __init__.py │ │ └── linode.py ├── urls.py └── wsgi.py ├── config └── entrypoint.sh ├── devops ├── ansible │ ├── django-app │ │ ├── handlers │ │ │ └── main.yaml │ │ └── tasks │ │ │ └── main.yaml │ ├── docker-install │ │ ├── handlers │ │ │ └── main.yaml │ │ └── tasks │ │ │ └── main.yaml │ ├── inventory.ini │ ├── main.yaml │ ├── nginx-lb │ │ ├── handlers │ │ │ └── main.yaml │ │ └── tasks │ │ │ └── main.yaml │ └── templates │ │ ├── docker-compose.yaml.jinja2 │ │ └── nginx-lb.conf.jinja └── tf │ ├── .terraform.lock.hcl │ ├── linodes.tf │ ├── locals.tf │ ├── main.tf │ ├── outputs.tf │ ├── templates │ └── ansible-inventory.tpl │ └── variables.tf ├── docker-compose.prod.yaml ├── docker-compose.yaml ├── fixtures ├── articles.json └── auth.json ├── manage.py ├── mediafiles └── articles │ └── hello-world │ └── 07472194-a6d5-11ec-887f-acde48001122.jpg ├── requirements.txt ├── staticfiles └── empty.txt ├── staticroot └── empty.txt └── templates ├── base.html └── navbar.html /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.dockerignore -------------------------------------------------------------------------------- /.github/workflows/all.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.github/workflows/all.yaml -------------------------------------------------------------------------------- /.github/workflows/container.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.github/workflows/container.yaml -------------------------------------------------------------------------------- /.github/workflows/infra.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.github/workflows/infra.yaml -------------------------------------------------------------------------------- /.github/workflows/mysql-init.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.github/workflows/mysql-init.yaml -------------------------------------------------------------------------------- /.github/workflows/staticfiles.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.github/workflows/staticfiles.yaml -------------------------------------------------------------------------------- /.github/workflows/test-django-mysql.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.github/workflows/test-django-mysql.yaml -------------------------------------------------------------------------------- /.github/workflows/test-django-postgres.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.github/workflows/test-django-postgres.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/README.md -------------------------------------------------------------------------------- /articles/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /articles/admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/admin.py -------------------------------------------------------------------------------- /articles/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/apps.py -------------------------------------------------------------------------------- /articles/management/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /articles/management/commands/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /articles/management/commands/backup_articles.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/management/commands/backup_articles.py -------------------------------------------------------------------------------- /articles/migrations/0001_initial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/migrations/0001_initial.py -------------------------------------------------------------------------------- /articles/migrations/0002_article_updated_by.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/migrations/0002_article_updated_by.py -------------------------------------------------------------------------------- /articles/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /articles/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/models.py -------------------------------------------------------------------------------- /articles/templates/articles/article_detail.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/templates/articles/article_detail.html -------------------------------------------------------------------------------- /articles/templates/articles/article_list.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/templates/articles/article_list.html -------------------------------------------------------------------------------- /articles/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/tests.py -------------------------------------------------------------------------------- /articles/urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/urls.py -------------------------------------------------------------------------------- /articles/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/utils.py -------------------------------------------------------------------------------- /articles/views.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/articles/views.py -------------------------------------------------------------------------------- /cfe-django-blog.code-workspace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfe-django-blog.code-workspace -------------------------------------------------------------------------------- /cfeblog/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cfeblog/asgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/asgi.py -------------------------------------------------------------------------------- /cfeblog/dbs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cfeblog/dbs/mysql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/dbs/mysql.py -------------------------------------------------------------------------------- /cfeblog/dbs/postgres.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/dbs/postgres.py -------------------------------------------------------------------------------- /cfeblog/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/settings.py -------------------------------------------------------------------------------- /cfeblog/storages/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cfeblog/storages/backends.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/storages/backends.py -------------------------------------------------------------------------------- /cfeblog/storages/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/storages/client.py -------------------------------------------------------------------------------- /cfeblog/storages/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/storages/conf.py -------------------------------------------------------------------------------- /cfeblog/storages/mixins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/storages/mixins.py -------------------------------------------------------------------------------- /cfeblog/storages/services/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cfeblog/storages/services/linode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/storages/services/linode.py -------------------------------------------------------------------------------- /cfeblog/urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/urls.py -------------------------------------------------------------------------------- /cfeblog/wsgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/cfeblog/wsgi.py -------------------------------------------------------------------------------- /config/entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/config/entrypoint.sh -------------------------------------------------------------------------------- /devops/ansible/django-app/handlers/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/django-app/handlers/main.yaml -------------------------------------------------------------------------------- /devops/ansible/django-app/tasks/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/django-app/tasks/main.yaml -------------------------------------------------------------------------------- /devops/ansible/docker-install/handlers/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/docker-install/handlers/main.yaml -------------------------------------------------------------------------------- /devops/ansible/docker-install/tasks/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/docker-install/tasks/main.yaml -------------------------------------------------------------------------------- /devops/ansible/inventory.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/inventory.ini -------------------------------------------------------------------------------- /devops/ansible/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/main.yaml -------------------------------------------------------------------------------- /devops/ansible/nginx-lb/handlers/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/nginx-lb/handlers/main.yaml -------------------------------------------------------------------------------- /devops/ansible/nginx-lb/tasks/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/nginx-lb/tasks/main.yaml -------------------------------------------------------------------------------- /devops/ansible/templates/docker-compose.yaml.jinja2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/templates/docker-compose.yaml.jinja2 -------------------------------------------------------------------------------- /devops/ansible/templates/nginx-lb.conf.jinja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/ansible/templates/nginx-lb.conf.jinja -------------------------------------------------------------------------------- /devops/tf/.terraform.lock.hcl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/tf/.terraform.lock.hcl -------------------------------------------------------------------------------- /devops/tf/linodes.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/tf/linodes.tf -------------------------------------------------------------------------------- /devops/tf/locals.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/tf/locals.tf -------------------------------------------------------------------------------- /devops/tf/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/tf/main.tf -------------------------------------------------------------------------------- /devops/tf/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/tf/outputs.tf -------------------------------------------------------------------------------- /devops/tf/templates/ansible-inventory.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/tf/templates/ansible-inventory.tpl -------------------------------------------------------------------------------- /devops/tf/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/devops/tf/variables.tf -------------------------------------------------------------------------------- /docker-compose.prod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/docker-compose.prod.yaml -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /fixtures/articles.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/fixtures/articles.json -------------------------------------------------------------------------------- /fixtures/auth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/fixtures/auth.json -------------------------------------------------------------------------------- /manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/manage.py -------------------------------------------------------------------------------- /mediafiles/articles/hello-world/07472194-a6d5-11ec-887f-acde48001122.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/mediafiles/articles/hello-world/07472194-a6d5-11ec-887f-acde48001122.jpg -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/requirements.txt -------------------------------------------------------------------------------- /staticfiles/empty.txt: -------------------------------------------------------------------------------- 1 | empty for git -------------------------------------------------------------------------------- /staticroot/empty.txt: -------------------------------------------------------------------------------- 1 | empty for git -------------------------------------------------------------------------------- /templates/base.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/templates/base.html -------------------------------------------------------------------------------- /templates/navbar.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/deploy-django-linode-mysql/HEAD/templates/navbar.html --------------------------------------------------------------------------------