File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ COPY src/backend/InvenTree ${INVENTREE_BACKEND_DIR}/InvenTree
137137COPY src/backend/requirements.txt ${INVENTREE_BACKEND_DIR}/requirements.txt
138138COPY --from=frontend ${INVENTREE_BACKEND_DIR}/InvenTree/web/static/web ${INVENTREE_BACKEND_DIR}/InvenTree/web/static/web
139139
140+ # Fix invoke command path for InvenTree environment check
141+ RUN ln -sf /root/.local/bin/invoke /bin/invoke
142+
140143# Launch the production server
141144CMD gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ${INVENTREE_BACKEND_DIR}/InvenTree
142145
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ def envcheck_invoke_cmd():
223223
224224 correct_cmd : Optional [str ] = None
225225 if is_rtd_environment () or is_docker_environment () or is_devcontainer_environment ():
226- pass
226+ return # Skip invoke command check for Docker/RTD/DevContainer environments
227227 elif is_pkg_installer (load_content = True ) and not is_pkg_installer_by_path ():
228228 correct_cmd = 'inventree run invoke'
229229 else :
You can’t perform that action at this time.
0 commit comments