When this variable is empty, Gatekeeper throws an error and cannot run.
No migrations to apply.
gatekeeper-1 | Collecting static files...
gatekeeper-1 | Traceback (most recent call last):
gatekeeper-1 | File "/var/www/manage.py", line 24, in <module>
gatekeeper-1 | main()
gatekeeper-1 | File "/var/www/manage.py", line 20, in main
gatekeeper-1 | execute_from_command_line(sys.argv)
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/init.py", line 443, in execute_from_command_line
gatekeeper-1 | utility.execute()
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/init.py", line 437, in execute
gatekeeper-1 | self.fetch_command(subcommand).run_from_argv(self.argv)
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 420, in run_from_argv
gatekeeper-1 | self.execute(*args, **cmd_options)
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 464, in execute
gatekeeper-1 | output = self.handle(*args, **options)
gatekeeper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gatekeeper-1 | File "/var/www/aegis/management/commands/initial_setup.py", line 77, in handle
gatekeeper-1 | call_command('collectstatic', '--noinput')
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/init.py", line 195, in call_command
gatekeeper-1 | return command.execute(*args, **defaults)
gatekeeper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 464, in execute
gatekeeper-1 | output = self.handle(*args, **options)
gatekeeper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 214, in handle
gatekeeper-1 | collected = self.collect()
gatekeeper-1 | ^^^^^^^^^^^^^^
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 137, in collect
gatekeeper-1 | handler(path, prefixed_path, storage)
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 388, in copy_file
gatekeeper-1 | if not self.delete_file(path, prefixed_path, source_storage):
gatekeeper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 298, in delete_file
gatekeeper-1 | if self.storage.exists(prefixed_path):
gatekeeper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/core/files/storage/filesystem.py", line 182, in exists
gatekeeper-1 | return os.path.lexists(self.path(name))
gatekeeper-1 | ^^^^^^^^^^^^^^^
gatekeeper-1 | File "/usr/local/lib/python3.12/site-packages/django/contrib/staticfiles/storage.py", line 39, in path
gatekeeper-1 | raise ImproperlyConfigured(
gatekeeper-1 | django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
In example.env (https://github.com/agstack/OpenAgri-Bootstrap-Deployment/blob/main/example.env),
GATEKEEPER_DJANGO_STATIC_ROOTcan be left empty:GATEKEEPER_DJANGO_STATIC_ROOT=When this variable is empty, Gatekeeper throws an error and cannot run.