Removed the command 'run-script' and added the command 'shell', and updated the docs and README

This commit is contained in:
W13R 2022-04-18 17:00:12 +02:00
parent a9c5ec34fc
commit aa85ac5ffc
5 changed files with 38 additions and 44 deletions

10
run.sh
View file

@ -8,12 +8,12 @@ function show_dm_help { # $1 = exit code
echo -e " server\t\tstart server"
echo -e " setup\t\t\tset up the application"
echo -e " create-admin\t\tcreate an admin account"
echo -e " generate-secret-key\tgenerate a new random secret key for django"
echo -e " generate-secret-key\tgenerate a new random secret key for Django"
echo -e " clear-sessions\tmanually remove all expired sessions from the database"
echo -e " force-db-upgrade\tforce a database migration & upgrade"
echo -e " archive-tables\tarchive (copy & delete) all entries in app_order and app_registertransaction"
echo -e " development-server\tstart django development server and enable debugging"
echo -e " run-script <path>\tRun a python script in the context of the django project (experimental)"
echo -e " development-server\tstart Django development server and enable debugging"
echo -e " shell\t\t\tstart a Django shell"
echo -e " help\t\t\tShow this help text\n"
echo -e "\nExamples:\n"
echo -e " ./run.sh server"
@ -77,9 +77,9 @@ else
python3 "$(pwd)/lib/archive-tables.py"
elif [ $1 = 'run-script' ]; then
elif [ $1 = 'shell' ]; then
source "$(pwd)/lib/run-script.sh"
source "$(pwd)/lib/start-django-shell.sh"
elif [ $1 = 'help' ]; then