March 2020
Intermediate to advanced
608 pages
17h 17m
English
Let's create the two scripts and make them run regularly, via the following steps:
(env)$ mkdir commands db_backups logs
# /home/myproject/commands/clear_sessions.sh#!/usr/bin/env bashSECONDS=0export DJANGO_SETTINGS_MODULE=myproject.settings.productionPROJECT_PATH=/home/myprojectREPOSITORY_PATH=${PROJECT_PATH}/src/myprojectLOG_FILE= ...
Read now
Unlock full access