https://github.com/devopshobbies/django-ci-cd-embedproject
https://github.com/devopshobbies/django-ci-cd-embedproject
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devopshobbies/django-ci-cd-embedproject
- Owner: devopshobbies
- License: other
- Created: 2023-01-03T14:47:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-10T04:58:36.000Z (over 2 years ago)
- Last Synced: 2025-03-25T18:45:13.418Z (9 months ago)
- Language: Python
- Size: 54.7 KB
- Stars: 48
- Watchers: 1
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DevOpsHobbies
## project setup
1- compelete cookiecutter workflow (recommendation: leave project_slug empty) and go inside the project
```
cd Project_name
```
2- SetUp venv
```
virtualenv venv
source venv/bin/activate
```
3- install Dependencies
```
pip install -r requirements.txt
```
4- spin off docker compose
```
docker-compose -f docker-compose.dev.yml up -d
```
5- create your env
```
cp .env.example .env
```
6- Create tables
```
python manage.py migrate
```
7- run the project
```
python manage.py runserver
```
8- Celery and celery beat
```bash
celery -A devopshobbies.tasks worker -l info --without-gossip --without-mingle --without-heartbeat
celery -A devopshobbies.tasks beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
```