diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-07-27 05:32:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-27 05:32:57 +0000 |
| commit | beff764d7402e6a834f6dbb0a28921fc2577defe (patch) | |
| tree | d1fd3beb026c1199d60ffc67b9c6e79ddb8f5f80 /docs/dev/makefile.rst | |
| parent | 80f5241387aea1381dd96ed2b91ca62de927ba23 (diff) | |
| parent | e946c3462c2b44fb154d0b6595f4f42605a326e5 (diff) | |
Merge pull request #216 from return42/fix-searx.sh
normalize environment of installation tasks (shell) with YAML settings
Diffstat (limited to 'docs/dev/makefile.rst')
| -rw-r--r-- | docs/dev/makefile.rst | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/dev/makefile.rst b/docs/dev/makefile.rst index b7472dad7..5bf3c13b2 100644 --- a/docs/dev/makefile.rst +++ b/docs/dev/makefile.rst @@ -81,6 +81,40 @@ the check fails if you edit the requirements listed in If you think, something goes wrong with your ./local environment or you change the :origin:`setup.py` file, you have to call :ref:`make clean`. +.. _make buildenv: + +``make buildenv`` +================= + +Rebuild instance's environment with the modified settings from the +:ref:`settings global brand` and :ref:`settings global server` section of your +:ref:`settings.yml <settings location>`. + +We have all SearXNG setups are centralized in the :ref:`settings.yml` file. +This setup is available as long we are in a *installed instance*. E.g. the +*installed instance* on the server or the *installed developer instance* at +``./local`` (the later one is created by a :ref:`make install <make +install>` or :ref:`make run <make run>`). + +Tasks running outside of an *installed instance*, especially those tasks and +scripts running at (pre-) installation time do not have access to the SearXNG +setup (from a *installed instance*). Those tasks need a *build environment*. + +The ``make buildenv`` target will update the *build environment* in: + +- :origin:`utils/brand.env` + +Tasks running outside of an *installed instance*, need the following settings +from the YAML configuration: + +- ``GIT_URL`` from :ref:`brand.git_url <settings global brand>` +- ``GIT_BRANCH`` from :ref:`brand.git_branch <settings global brand>` + +- ``SEARX_URL`` from :ref:`server.base_url <settings global server>` (aka + ``PUBLIC_URL``) +- ``SEARX_BIND_ADDRESS`` from :ref:`server.bind_address <settings global server>` +- ``SEARX_PORT`` from :ref:`server.port <settings global server>` + .. _make run: ``make run`` |