I have a simple Flask app (called io_server
) within a virtualenv. This directory structure looks like this:
root@beaglebone:/home/debian/io_server
I want to automatically start the Flask app on reboot of the Beagle Bone.
To do this I created a crontab with the following line:
@reboot cd /home/debian/io_server && . venv/bin/activate && flask run --host=0.0.0.0
It doesn't work.
Is there an obvious problem with the command in the crontab? otherwise is there a way to inspect the output of the attempted execution of this command?