-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 835 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (30 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
DOCKERCOMPOSETEST=docker-compose -f docker/docker-compose.test.yml
PROJECT_NAME={{project_name}}
devup:
docker-compose up -d
devupb:
docker-compose up --build -d
devdown:
docker-compose down --remove-orphans
testup:
${DOCKERCOMPOSETEST} up -d
testupb:
${DOCKERCOMPOSETEST} up --build -d
testdown:
${DOCKERCOMPOSETEST} down --remove-orphans
build:
docker build -t ${PROJECT_NAME}_web:latest .
setup-project:
test $(PROJECT_NAME)
./scripts/update_projectname.sh ${PROJECT_NAME}
cp .env.example .env
python3 -m venv venv
python3 -m pip install --upgrade pip
. venv/bin/activate; pip install -r requirements.txt
./scripts/update_secret_key.sh
. venv/bin/activate; python3 manage.py migrate
yarn install --check-files
yarn build
update-requirements:
pip freeze > requirements.txt
echo "-e ." >> requirements.txt