We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When passing apllication factory to FLASK_APP, i.e. FLASK_APP=app:create_app(), cron fails.
Environment: FLASK_APP=app:create_app()
FLASK_APP=app:create_app()
Crontab command created: cd <project path> && FLASK_APP=app:create_app() <path to environment>/bin/python -m flask crontab run 4cee55ee21b006de06c75e2c2f469f81
cd <project path> && FLASK_APP=app:create_app() <path to environment>/bin/python -m flask crontab run 4cee55ee21b006de06c75e2c2f469f81
Expected output: Command should excecute
Error: bash: syntax error near unexpected token \('`
bash: syntax error near unexpected token \
Solution: Wrap FLASK_APP value in quotes i.e. FLASK_APP='app:create_app()'
FLASK_APP='app:create_app()'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When passing apllication factory to FLASK_APP, i.e. FLASK_APP=app:create_app(), cron fails.
Environment:
FLASK_APP=app:create_app()
Crontab command created:
cd <project path> && FLASK_APP=app:create_app() <path to environment>/bin/python -m flask crontab run 4cee55ee21b006de06c75e2c2f469f81
Expected output:
Command should excecute
Error:
bash: syntax error near unexpected token \
('`Solution:
Wrap FLASK_APP value in quotes
i.e.
FLASK_APP='app:create_app()'
The text was updated successfully, but these errors were encountered: