Installer CLI fix (#6049)

* Update heroku procfile

- Fix command to run on ubuntu 20.04
- Add "invoke" command (duplicate of "cli")

* Update docs for installer

* Fix typo

* Update root_commands.sh
This commit is contained in:
Oliver 2023-12-08 13:10:44 +11:00 committed by GitHub
parent ca909f9d5a
commit 5b5df279c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 5 deletions

View File

@ -1,3 +1,8 @@
# Web process: gunicorn
web: env/bin/gunicorn --chdir $APP_HOME/InvenTree -c InvenTree/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:$PORT
# Worker process: qcluster
worker: env/bin/python InvenTree/manage.py qcluster
cli: echo "" && . env/bin/activate && exec env/bin/python -m invoke
# Invoke commands
invoke: echo "" | echo "" && . env/bin/activate && invoke
# CLI: Provided for backwards compatibility
cli: echo "" | echo "" && . env/bin/activate && invoke

View File

@ -111,7 +111,7 @@ root_command() {
done
if [[ $NEEDS_LIBSSL1_1 == "true" ]]; then
echo "### Pathching for libssl1.1"
echo "### Installing libssl1.1"
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
do_call "sudo apt-get update"

View File

@ -101,7 +101,7 @@ for pkg in $REQS; do
done
if [[ $NEEDS_LIBSSL1_1 == "true" ]]; then
echo "### Pathching for libssl1.1"
echo "### Installing libssl1.1"
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
do_call "sudo apt-get update"

View File

@ -151,6 +151,20 @@ inventree config
All CLI settings are lost when the package is uninstalled.
Use the config file where possible as it is kept on uninstall and can easily be synced across instances. Environment variables are a good place for passwords (but not the secret_key).
### Invoke
Many InvenTree administration operations run using the `invoke` tool. When installed via the package installer, these commands can be called as follows:
```bash
inventree run invoke <command>
```
For example, to print InvenTree version information:
```bash
inventree run invoke version
```
## Architecture
The packages are provided by [packager.io](https://packager.io/). They are built each time updates are pushed to GitHub and released about 10 minutes later. The local package index must be updated to see the new release in the package manager.