feat: prefer using the funkwhale-manage entrypoint
This replaces `poetry run python3 manage.py` with `venv/bin/funkwhale-manage`. Command running `venv/bin/funkwhale-manage` assume the current working directory is `/srv/funkwhale` on common deployments. In the funkwhale api docker image, the funwhale-manage command line interface is available globally.
This commit is contained in:
parent
75c9b1eabe
commit
14b5e137bd
25 changed files with 145 additions and 144 deletions
|
|
@ -26,7 +26,7 @@ class Command(BaseCommand):
|
|||
script = available_scripts[name]
|
||||
except KeyError:
|
||||
raise CommandError(
|
||||
"{} is not a valid script. Run python3 manage.py script for a "
|
||||
"{} is not a valid script. Run funkwhale-manage for a "
|
||||
"list of available scripts".format(name)
|
||||
)
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ class Command(BaseCommand):
|
|||
def show_help(self):
|
||||
self.stdout.write("")
|
||||
self.stdout.write("Available scripts:")
|
||||
self.stdout.write("Launch with: python3 manage.py <script_name>")
|
||||
self.stdout.write("Launch with: funkwhale-manage <script_name>")
|
||||
available_scripts = self.get_scripts()
|
||||
for name, script in sorted(available_scripts.items()):
|
||||
self.stdout.write("")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue