Skip to content

Latest commit

 

History

History
65 lines (52 loc) · 1.24 KB

File metadata and controls

65 lines (52 loc) · 1.24 KB

Command list for the Project


The command to run the site docker build on the server

sudo docker compose -f "./docker-compose.yml" up

The command to start the rebuild of the docker site on the server

sudo docker compose -f "./docker-compose.yml" build --force-rm --no-cache

Running the project locally

poetry run python manage.py runserver

Launching Django shell

python manage.py shell

Migrations in the Django project

python manage.py makemigrations
python manage.py migrate

Create superuser for the project

python manage.py createsuperuser

Create app for the project & start the project

django-admin startproject advertisements
python manage.py startapp app_advertisements

Docker clean cache and stop the containers all

sudo docker builder prune
sudo docker image prune -a -f
sudo docker container prune
sudo docker rm $(docker ps -a -q)

README.md