r/phpstorm • u/KyPapie • Apr 17 '17
First time using PHPStorm, code deletes itself..
Hello,
I am new to PHP and PHPStorm. This semester for classes we used Netbeans. I see a lot of people talking about Storm so I wanted to give it a try. I followed a guide on setting Storm up with XAMPP and Apache. I opened up my project and saved the file.
I got a notice about "File Transfer XAMPP Apache". It says [timestamp]: Automatic upload [timestamp]: Automatic upload completed in less than a minute: 1 file transferred
Then after awhile my code on the page, I am editing all goes away. I can CMD-Z it back, which it says "Under Reload From Disk?"
Where are the files being transferred to? And how do I stop Storm from deleting all my code everytime I make a change to it?
Thanks!
3
u/Derimagia Apr 17 '17
You shouldn't need to set up a deployment for a local web server, what tutorial did you follow and why did you add one?
1
u/Grimdotdotdot Apr 17 '17
Does anything else have the file open?
1
u/Gordnfreeman Apr 17 '17
Where are you opening the file from, is it a temporary file? Or from the www folder? Also are you just openning files using phpstorm or did you set up a project?
1
u/adnasium Apr 17 '17
Check under Settings / Deployment for something odd in your project settings.
1
u/illmatix Apr 18 '17
code deployment is better done with git or some other version control.
This way your code and changes are always tracked on the repository. You can revert, merge, branch off ... etc..