I have deployed a PHP worker on heroku. I have disabled the web dyno because I don't need it. I can't access the shell of the worker dyno using heroku CLI (
heroku ps:exec) (First screenshot below). If I enable the web worker, then I can connect using
heroku run bash worked though.
I have another question. In the php worker, I have some codes like file_put_contents() to store some data. In my local development machine, those codes work fine and create the files to store data. But in heroku, I can't see those files if I issue
ls command (2nd Screenshot)