Skip to content

Commit

Permalink
v1.1 - FR#45 FR#48 FR#49
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien DAMAYE committed Mar 6, 2025
1 parent 27b3299 commit b94049b
Show file tree
Hide file tree
Showing 7 changed files with 348 additions and 61 deletions.
5 changes: 5 additions & 0 deletions deephunter/settings.github
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ SECRET_KEY = '*****************************************************************'

DEBUG = False

# Update settings
UPDATE_ON = "release" # Possible values: commit|release
TEMP_FOLDER = "/data/tmp"
VENV_PATH = "/data/venv"

SHOW_LOGIN_FORM = False

ALLOWED_HOSTS = ['deephunter.domain.com']
Expand Down
34 changes: 34 additions & 0 deletions docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,40 @@ DEBUG
- **Description**: Used to display debug information. Can be set to ``True`` in development environement, but always to ``False`` in a production environment.
- **Example**: ``DEBUG = True``

UPDATE_ON
*********

- **Type**: String
- **Description**: Choose how you should be notified about updates and what repository should be considered for updates. If you select ``commit``, you will be notified each time there is a new commit, and the upgrade script will download the very latest version of DeepHunter. If you select ``release``, you will only be notified about updates when a new version is released, and the upgrade script will download the latest release, instead of the latest commited code.
- **Possible values**: ``commit`` or ``release``
- **Example**:

.. code-block:: py
UPDATE_ON = "release"
TEMP_FOLDER
***********

- **Type**: String
- **Description**: Used by the upgrade script. This is a temporary location where the current version of deephunter will be saved before upgrading. This can be used for easy rollback in case of error during the update process.
- **Example**:

.. code-block:: py
TEMP_FOLDER = "/data/tmp"
VENV_PATH
*********

- **Type**: String
- **Description**: Used by the update script. This is your python virtual path.
- **Example**:

.. code-block:: py
VENV_PATH = "/data/venv"
SHOW_LOGIN_FORM
***************
- **Type**: Boolean
Expand Down
Loading

0 comments on commit b94049b

Please sign in to comment.