When I tried running
heroku run bash python manage.py migrate --app appName
from my terminal using the Heroku CLI, I get below error/response;
/app/.heroku/python/bin/python: /app/.heroku/python/bin/python: cannot execute binary file
-- Updated with screenshot --
Even when I tried heroku run python manage.py migrate --app appName
without adding bash, I still get an error.
I was finally able to get around this by first getting into bash on heroku, then running the command I wish to. Steps are listed below;
heroku run bash --app appName
~ $
python manage.py migrate
which should work.ls -l $(ls)
or find . -maxdepth 3 -type d -ls
or simply ls -l