Skip to content

docs: brief writeup for env-vars on webserver in Dockerfile - #10906

Merged
SchrodingersGat merged 3 commits into
inventree:masterfrom
kquinsland01:docs/adjust-bind
Nov 26, 2025
Merged

SchrodingersGat merged 3 commits into
inventree:masterfrom
kquinsland01:docs/adjust-bind

Conversation

@kquinsland01

Copy link
Copy Markdown
Contributor

Mates with #10900 and makes the two variables that govern the bind string a bit easier to discover.


Quick note, I was not able to follow the docs for running mkdocs locally:

❯ mkdocs serve -f docs/mkdocs.yml -a localhost:8080
INFO    -  Building documentation...
INFO    -  MERMAID2  - Initialization arguments: {}
INFO    -  MERMAID2  - Using specified javascript library: javascripts/mermaid.min.js
'READTHEDOCS' environment variable not found
Building for localhost configuration!
config.site_url = 'http://localhost:8080/'
config.assets_dir = '/assets'
Fetching InvenTree release information from api.github.com:
Saving release information to 'releases.json'
- found 134 releases.
loading ./docs/main.py...
<...>
  File "/home/karl/Projects/inventree/InvenTree/docs/main.py", line 62, in <module>
    with open(settings_file, encoding='utf-8') as sf:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/karl/Projects/inventree/InvenTree/docs/generated/inventree_settings.json'

And the same inside dev-container:

FileNotFoundError: [Errno 2] No such file or directory: '/home/inventree/docs/generated/inventree_settings.json'

It looks like that file might(?) be generated by part of the CI flow? Happy to update the docs/README.md in a PR if there's a simple step that's been inadvertently omitted.

@netlify

netlify Bot commented Nov 25, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 73570eb
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/692665a8b4b31a0008f9fd6a

Comment thread docs/docs/start/config.md Resolved
Comment thread docs/docs/start/config.md Resolved
@SchrodingersGat SchrodingersGat added docker Docker / docker-compose setup Relates to the InvenTree setup / installation process documentation labels Nov 25, 2025
@matmair

matmair commented Nov 25, 2025

Copy link
Copy Markdown
Member

That is because you are building the docs with the wrong command - see the build-docs task https://docs.inventree.org/en/stable/start/invoke/?h=build-docs#available-tasks

@kquinsland01

Copy link
Copy Markdown
Contributor Author

That is because you are building the docs with the wrong command

Should I file a docs bug against this?

@SchrodingersGat

Copy link
Copy Markdown
Member

@kquinsland thanks for the contribution :)

@SchrodingersGat
SchrodingersGat merged commit 0746a11 into inventree:master Nov 26, 2025
@SchrodingersGat SchrodingersGat added this to the 1.2.0 milestone Nov 26, 2025
@kquinsland01

Copy link
Copy Markdown
Contributor Author

@kquinsland thanks for the contribution :)

Thanks for this bit of software :). It + the label maker print plugin is really helping me finally get my assorted Ali Express inventory in a manageable state :).

@kquinsland01
kquinsland01 deleted the docs/adjust-bind branch November 26, 2025 15:24
CapnKernel pushed a commit to CapnKernel/InvenTree that referenced this pull request Dec 14, 2025
…e#10906)

* docs: brief writeup for env-vars on webserver in Dockerfile

Mates with inventree#10900

nit, fix: spacing

2 -> 1

* docs: relocate

And simplify

---------

Co-authored-by: Karl Quinsland <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker / docker-compose documentation setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants