-
Notifications
You must be signed in to change notification settings - Fork 49
/
rav.yaml
26 lines (26 loc) · 1.36 KB
/
rav.yaml
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
scripts:
server: cd src && python manage.py runserver
migrate: cd src && python manage.py migrate
freeze: venv/bin/python -m pip freeze
watch: npx tailwindcss -i ./src/static/tailwind/tailwind-input.css -o ./src/static/css/output.css --watch
installs:
- venv/bin/pip-compile src/requirements/requirements.in -o src/requirements.txt
- venv/bin/python -m pip install -r src/requirements.txt
- npm install
win_installs:
- pip-compile src/requirements/requirements.in -o src/requirements.txt
- python -m pip install -r src/requirements.txt
- npm install
win_freeze: python -m pip freeze
vendor_pull:
- rm -rf src/static/vendor
- mkdir -p src/static/vendor/htmx/
- mkdir -p src/static/vendor/flowbite/
- curl -L https://unpkg.com/[email protected] -o ./src/static/vendor/htmx/htmx.min.js
- cp ./node_modules/flowbite/dist/flowbite.min.js ./src/static/vendor/flowbite/flowbite.min.js
build: docker build -f Dockerfile -t micro-ecommerce .
docker_dev: docker run --env-file .env-dev -p 8001:8000 --rm --name micro-ecommerce-dev -it micro-ecommerce
docker_prod: docker run --env-file .env-prod -p 8002:8000 --rm --name micro-ecommerce-prod -it micro-ecommerce
build_push:
- docker build --platform=linux/amd64 -f Dockerfile -t codingforentrepreneurs/micro-ecommerce .
- docker push codingforentrepreneurs/micro-ecommerce --all-tags