Is it possible to tell PhpStorm to watch a file and if the file is changed (like compiling from scss to css) PhpStorm will automatically upload the compiled css file to the remote server?
Solution is "Upload external changes" under "Deployment Options". its uploading my compiled file automatically if I am work around the scss files.
Yes. This is done from the "Deployment" section in Phpstorm > Settings (see the screenshot). Take a look at the instructions here: Deploying PHP Applications with PhpStorm.
It involves:
Once the server is set up, you can Upload files manually:
Tools > Deployment > Upload to Default Server
Or automatically:
Tools > Deployment > Automatic Upload
I prefer using the manual upload option (with a hotkey) to have more control.
In the screenshot, my deployment server is a local XAMPP htdocs folder on my mac. Your configuration will be different, but it's the same concept.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With