diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-14 17:01:23 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-10-14 17:01:23 -0400 |
| commit | 067f8f92b568527e94e2a04fa495f86f1820a4bc (patch) | |
| tree | e641dd94a99ab433f9a2a245c85d9b16a7aa0fed /app/demo.sh | |
| parent | 5369537388a3239f3f19080053fcdab6ad9b95eb (diff) | |
| download | dispatch-tracker-067f8f92b568527e94e2a04fa495f86f1820a4bc.tar.gz dispatch-tracker-067f8f92b568527e94e2a04fa495f86f1820a4bc.tar.xz | |
Move to environment vars. Create a container that sets up a demo.
Instead of the old method with scripts, docker-compose file, everything
is pulled into the main container with various configuration options
allowed from environment variables.
Also move settings.py away from the old yaml setup and pull directly
from the environment instead.
Diffstat (limited to 'app/demo.sh')
| -rwxr-xr-x | app/demo.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/demo.sh b/app/demo.sh new file mode 100755 index 0000000..79d1815 --- /dev/null +++ b/app/demo.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -e +set -x +#shellcheck disable=SC2046 +python="$(find $(echo "$PATH" | tr : '\n') -type f -executable -iname 'python*' | sed 1q)" +manage() { +$python manage.py "$@" +} + +manage migrate +manage setup +manage setup_identity +manage insert_fake_data --companies 20 --users 20 --loads 600 \ + --attachments=True --invoices=True --start-date='-6w' --end-date='+6w' |
