Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Install mealie as CLI command #4323

Open
wants to merge 1 commit into
base: mealie-next
Choose a base branch
from

Conversation

chishm
Copy link
Contributor

@chishm chishm commented Oct 7, 2024

What type of PR is this?

  • feature

What this PR does / why we need it:

Add a CLI command, mealie, that is created when the project is installed via Poetry or Pip. This command runs the main mealie app, (almost) the same as running python3 mealie/main.py.

The command is used in the Docker image to start mealie, ensuring it works there too.

Additional changes:

  • Remove assumption about the root of the mealie package being on the Python path (change "app:app" -> "mealie.app:app" in main.py).
  • Remove start entrypoint because it is not used and the name "start" is too generic.`

Which issue(s) this PR fixes:

This is one task from discussion #4322.

Testing

I built and ran the Docker container.

I ran poetry install followed by poetry run mealie.

* Remove assumption about the root of the mealie package being on the
  Python path (change "app:app" -> "mealie.app:app" in `main.py`).
* Remove `start` entrypoint because it is not used and the name "start"
  is too generic.`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant