joshmoto
joshmoto

Reputation: 1760

Is there a way to monitor file changes and auto upload the file in PhpStorm?

I've just switched to PhpStorm cause it's awesome!

But I'm doing some Sass styling and would be nice if I could monitor the compiled CSS file and upload after it has been compiled?

Is there way that this can done? I used to be able to monitor files in Sublime so files would upload direct to the server after being compiled.

Any advice would be much appreciated as I can seem to find anything about it.


Looking at Preferences > File Watchers ...

This is about as far as I got, and this just gets an error. Not sure really how this works, documentation is a little confusing.

enter image description here

Upvotes: 5

Views: 2432

Answers (2)

Software Developer
Software Developer

Reputation: 868

Just to add on this excellent answer https://stackoverflow.com/a/42225022/10708470; For PHPStorm 20.3 you will go to:

    Preferences -> Build, Excecution, Deployment -> Deployment  -> Options

OR

    File -> Settings -> Build, Excecution, Deployment -> Deployment -> Options

and instead of ticking the box labeled "Upload external changes"(It's not available anymore), You will make sure the box labeled "Skip External Changes" is unchecked (see the screenshot below)

enter image description here

Upvotes: 2

madsroskar
madsroskar

Reputation: 1238

You can!

If you go to tools->deployment->configuration, and add a connection for the uploads.

Once you've configured a connection, go to tools->deployment and click "Automatic upload" to have PHPStorm upload the changes to files in the project.

To monitor changes that are made outside of PHPStorm, you can go to Preferences->Build, Excecution, Deployment->Deployment->Options, and tick the box labeled "Upload external changes".

Upvotes: 4

Related Questions