cd /path/to/git
heroku git:remote -a <name-of-the-app>
after that you should can run heroku run [your command]
without using --apps [name apps]
cd /path/to/git
heroku git:remote -a <name-of-the-app>
after that you should can run heroku run [your command]
without using --apps [name apps]