Hi, i use jasonlewis\resource-watcher package to detect a presence of new file in storage, so everytime new file is created in storage/public i can detect it and move it to another folder, the package is working fine on localhost but i need to run it on cpanel, to start the package in localhost i simply use 'php artisan watcher' but how do i run it on cpanel, so it can work on background. If it's impossible to run it on cpanel is there another way i can detect a new file and move it to another folder
Actually in Cpanel no commands for php and composer related run because everytime you upload your projects on Cpanel you have to compile it down in your local and then upload it.
Alternatively, get the SSH access from your Cpanel and after successful SSH login try running your various artisan commands you want.
@SHAHRUKH4 - @shahrukh4 Agree to you that SSH is good choice to do that. But I have seen shared hosting has terminal in cPanel and I did run the command, but I have a VPS with WHM installed, I enabled the terminal for my cPanel and when I type php artisan inside my root, I see no effect.
So if you know how to enable it please let me know. If a shared hosting has this functionality enabled, then there should be a solution inside VPS, because in VPS we have more access. I have unmanaged vps so I can't ask to the provider.