Upload files to local server

I'm having some problems creating a run configuration for a local server in phpstorm and hopefully someone can help me.
The current situation:
- I have a php project in directory D:\Projects\Website One Stroke
- I'm using a mercurial plug-in for source control
- Wamp is installed locally: D:\Program Files\Wamp (so all sites go in D:\Program Files\Wamp\www)

What I would like to have: a run configuration that copies all changed files to my local webserver and opens the site. (if possible exluding copying some files/folders like .hg, .hgignore & .htaccess)

What I think is the problem:
     I created a Local web server mapping in Deployment and a Run/Debug Configuration requires a FTP or SFTP mapping to upload files.
     Is it possible to upload files to my local server using a Local mapping?

I have some screenshots ready of my current configuration. If they are required, I'll upload them.

Any help is appreciated!

2 comments
Comment actions Permalink

Hello Koen,

Please see the related answer. In a few words, as of PhpStorm 1.0.1 you need to specify Mounted folder server type and specify D:\Program Files\Wamp as a mounted root. We'll fix this confusion in the next version.

What I would like to have: a run configuration that copies all changed files to my local webserver and opens the site.

Check 'Upload files to the selected server', add a set of folders to upload (or just project root folder). To upload only changed files, uncheck 'Overwrite up-to-date' files and check 'preserve files timestamps' checkbox at 'File | Settings | Deployment | Options' screen. This way PhpStorm will skip the file if it has the same size and last modified timestamp as the target one.

(if possible exluding copying some files/folders like .hg, .hgignore & .htaccess)

Exclusion masks are also set up at  'File | Settings | Deployment | Options' screen.

Regards,
Kirill

PS You may like to upload changed files automatically once you save them  (by pressing Ctrl+S, or just switching to different application). It's  'Upload changed files automatically' checkbox at the Options screen.

0
Comment actions Permalink

Thanks for clear and full answer!

0

Please sign in to leave a comment.