-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy pathrav.yaml
More file actions
71 lines (69 loc) · 2.57 KB
/
rav.yaml
File metadata and controls
71 lines (69 loc) · 2.57 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
description: |
rav is a simple tool to help run commands.
install with pip install rav
scripts:
install:
- venv/bin/python -m pip install -r requirements.txt
install_dev:
- venv/bin/python -m pip install -r requirements.txt
- venv/bin/python -m pip install -r requirements.dev.txt
makemigrations:
- venv/bin/python src/manage.py makemigrations
migrate:
- venv/bin/python src/manage.py migrate
dev:
- venv/bin/python src/manage.py runserver 8080
test:
- cd src && ../venv/bin/python manage.py test
vendors_pull:
# grab vendor files to serve via whitenoise
- venv/bin/rav download staticfiles_dev
collectstatic:
- cd src && ../venv/bin/python manage.py collectstatic --noinput
docker_build:
- docker build -t cfe-saas-foundations:latest .
docker_stop:
- docker stop cfe-saas-foundations
docker_run:
- docker run --rm --name cfe-saas-foundations --env-file .env -e PORT=8080 -p 8080:8080 cfe-saas-foundations:latest
docker_shell:
- docker run --rm -it --env-file .env cfe-saas-foundations:latest /bin/bash
downloads:
staticfiles_prod:
name: vendor
destination: staticfiles/vendors
verbose: true
raise_on_error: true
overwrite: true
files:
- name: saas-theme.min.css
overwrite: false
url: https://raw.githubusercontent.com/codingforentrepreneurs/SaaS-Foundations/main/src/staticfiles/theme/saas-theme.min.css
- name: flowbite.min.css
overwrite: false
url: https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.5.2/flowbite.min.css
- name: flowbite.min.js
overwrite: false
url: https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.5.2/flowbite.min.js
- name: flowbite.min.js.map
overwrite: false
url: https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.5.2/flowbite.min.js.map
staticfiles_dev:
name: vendor
destination: src/staticfiles/vendors
verbose: true
raise_on_error: true
overwrite: true
files:
- name: saas-theme.min.css
overwrite: false
url: https://raw.githubusercontent.com/codingforentrepreneurs/SaaS-Foundations/main/src/staticfiles/theme/saas-theme.min.css
- name: flowbite.min.css
overwrite: false
url: https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.5.2/flowbite.min.css
- name: flowbite.min.js
overwrite: false
url: https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.5.2/flowbite.min.js
- name: flowbite.min.js.map
overwrite: false
url: https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.5.2/flowbite.min.js.map