2 Commits
Author SHA1 Message Date
marc dfe11a2ea2 com to fr 2022-08-27 22:39:43 +02:00
marc 739d0af61c requirements.txt 2022-08-27 22:34:15 +02:00
3 changed files with 14 additions and 24 deletions
+10 -12
View File
@@ -13,11 +13,6 @@ DOCKER_COMPOSE_DEV := docker-compose-dev.yml
DOCKER_COMPOSE_MARC := docker-compose-marc.yml
DOCKER_COMPOSE_MARC_DEV := docker-compose-marc-dev.yml
### Django
SECRET_KEY := whatever
HOST := localhost
PORT := 9080
###############
### TARGETS ###
###############
@@ -43,19 +38,22 @@ down: ## Run down all servers (production and dev)
docker-compose --file $(DOCKER_COMPOSE_MARC_DEV) down
build: ### Build from the ground up
pipenv update
SECRET_KEY=doesntmatter ./manage.py collectstatic --noinput
docker-compose --file $(DOCKER_COMPOSE) build
local: ## Run server in local without docker
pip install -r requirements.txt
./entrypoint.sh
update:
pipenv update
pipenv lock -r > requirements.txt
SECRET_KEY=$(SECRET_KEY) ./manage.py collectstatic --noinput
dev: ## Run dev server locally without docker
PRODUCTION=false HOST=$(HOST) PORT=$(PORT) SECRET_KEY=$(SECRET_KEY) ./entrypoint.sh
prod: ## Run prod server locally without docker
PRODUCTION=true HOST=$(HOST) PORT=$(PORT) SECRET_KEY=$(SECRET_KEY) ./entrypoint.sh
build: update
docker-compose -f $(DOCKER_COMPOSE) build
# Special target help
help: ## Show this help
+1 -1
View File
@@ -16,7 +16,7 @@ services:
caddy: valentin-colin.fr
caddy.reverse_proxy: "{{upstreams 80}}"
traefik.enable: "true"
traefik.http.routers.valentincolin_website.rule: Host(`valentin-colin.com`)
traefik.http.routers.valentincolin_website.rule: Host(`valentin-colin.fr`)
traefik.http.routers.valentincolin_website.entrypoints: websecure
traefik.http.routers.valentincolin_website.tls.certresolver: tls
traefik.http.services.valentincolin_website.loadbalancer.server.port: 80
+3 -11
View File
@@ -1,12 +1,4 @@
#
# These requirements were autogenerated by pipenv
# To regenerate from the project's Pipfile, run:
#
# pipenv lock --requirements
#
-i https://pypi.org/simple
asgiref==3.5.2; python_version >= '3.7'
django==4.1
asgiref==3.5.2
Django==4.1
dotmap==1.3.30
sqlparse==0.4.2; python_version >= '3.5'
sqlparse==0.4.2