'setup_nginx' and 'install_services' not found
Closed this issue · 2 comments
fabge commented
When trying to install pi-dawn I arrive at the following point:
FLASK_APP=pi_dawn ./pi-dawn/bin/flask setup_nginx
When I try to execute this command I get following error:
root@raspberrypi:~# FLASK_APP=pi_dawn ./pi-dawn/bin/flask setup_nginx
Usage: flask [OPTIONS] COMMAND [ARGS]...
Try "flask --help" for help.
Error: No such command "setup_nginx".
root@raspberrypi:~# FLASK_APP=pi_dawn ./pi-dawn/bin/flask install_services
Usage: flask [OPTIONS] COMMAND [ARGS]...
Try "flask --help" for help.
Error: No such command "install_services".
I am using Raspbian Buster, anything I can do to fix it?
fabge commented
In the comment from your post you said that setup-nginx
and install-services
is the correct syntax. But how can this be? In your p-dawn __init__.py
you are defining your functions with an underscore _
?
sebasgo commented
Flask (or, actually click) replaces the underscores with dashes. It was really just a typo in the README, which is fixed now.