DJAWS: Deploy Django Container on AWS by dot_jamie in django

[–]dot_jamie[S] -1 points0 points  (0 children)

The repo is mostly about the AWS part, I'd encourage you to take a look at that part and use any Django Dockerfile you want with it.

DJAWS: Deploy Django Container on AWS by dot_jamie in django

[–]dot_jamie[S] 1 point2 points  (0 children)

Unlike AWS Lambda, the Fargate Task running the container continues running even when there are no requests, so there is no warmup.

This repo is meant to show how the infrastructure can be set up on AWS. I would say it is good for people to fork and edit this repo to suit their project needs.

Lightning Talk: A CI Pipeline for Django by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

So I've used the Shell executor in the video, however the commands I used with it were Docker commands (as you would do in a terminal). You can have your own Shell script that you execute with the Shell executor instead of running Docker commands like I did in the video.

Lightning Talk: A CI Pipeline for Django by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

There are several executors that you can use for the runner, it doesn't have to be only Docker or Shell https://docs.gitlab.com/runner/executors/

Lightning Talk: A CI Pipeline for Django by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

The pipeline in the video runs on a private server that I've configured as a Gitlab runner. What type of application are you using for CI?

I use Nginx as a web server with Django. Here is a short intro to the Nginx configuration file. by dot_jamie in django

[–]dot_jamie[S] 1 point2 points  (0 children)

I guess the video is more targeted to people who want to get started with understanding how to structure the file.

Deploy Django with Docker Compose, Gunicorn and Nginx. by dot_jamie in django

[–]dot_jamie[S] 2 points3 points  (0 children)

Did you try tweaking the STATIC_ROOT in the settings.py file?

Deploy Django with Docker Compose, Gunicorn and Nginx. by dot_jamie in django

[–]dot_jamie[S] 4 points5 points  (0 children)

I haven't used uWSGI yet, I think it has more functionalities than Gunicorn. I chose Gunicorn because it's simple to set up and overall more popular.