When creating a new project from existing files on a remote server (via SFTP), it takes a long time to get all the files (three hours for a Magento 2 installation). If I were to compress and transfer the installation, it would take less than ten minutes to transfer.
Is there a way I can manually transfer the files (outside of PhpStorm) onto my dev machine, then have PhpStorm index the local copy of the files for its code intelligence, but tell it about the link to the remote server, for deployment and debugging?
I have a large project with multiple repositories. Whenever I create a new file in one of my repositories with a build tool like gulp or webpack I don't see any changes show up unless I manually right click my root directory and click synchronize selected files.
It does not matter how long I wait it only works if I do this. Is there something I could tweak or change to possible effect this and maybe help me get rid of this problem?
I am syncing with a virtual machine but edits or lightning fast and I have caching turned off.
I'm using PhpStorm for a while now but I'm a bit confused for the right way to work on projects with remote files.
At the moment I've created a project (FTP) and download everything from the deployment server. When I save a file it gets uploaded automatically but there are situations where I'm working from another device using a different approach to modify files.
At this moment I'm redownloading the entire deployment server, but this seems like an overkill. Is there a method like 'sync' to just download/modify the remote changed files? I know there is an item in the context menu 'Synchronize "Project name"', but this doesn't seem to do anything?
When I change a file in the directory, the change is not reflected on the web page shown when I access it through localhost, but it is shown when I access it directly by the file path on my system. Why?
I am on a Windows machine. My files are stored at C:\Program Files (x86)\Ampps\www\connor.dev . When I directly reference a file, by going to a link like this in the browser, file:///C:/Program%20Files%20(x86)/Ampps/www/connor.dev/index.php, the changes I made and saved in Sublime Text are shown. When I access it by going to localhost/connor.dev/, the changes are not shown. Even if I delete the file completely, it is still shown in localhost. This started happening recently on xampp, so I uninstalled it and used Ampps, and now the same thing is happening. If you need more info please ask.
Press Ctrl-F5 to hard refresh the page (to not use Browser's cache).
If you still see the previous pages or changes, then Apache has mod_cache caching them, or PHP has its opcode cache settings set to not refresh changes for X amount of time.
I'm using Bitnami and the way I fixed it was to go inside C:\Bitnami\wappstack-version-number\php\php.ini, you can make the following changes and then reset your server:
opcache.enable=0
opcache.revalidate_freq=0
My php was updating every 60 seconds before, so I decided to turn that to 0 and just disable caching.
Its happening because of apache mod_cache caching the resources.
For quick fix. Just restart the Apache server.
In ubuntu i use this below command in terminal to restart the Apache server
systemctl restart apache2
Now refresh the browser, then you will get the updated one.
It comes out to be an issue with the cache thing, so in simple words all you have to do is to remove the cached data of the specific webpage.
I am new to web design, and I am using XAMPP for my website to test PHP and MySQL, I noticed that when I modify the index.html (HTML, CSS), I don't see the changes immediately when I open it from the browser localhost/webdesign/index.html. I often have to wait for more than 10 minutes to see the changes in localhost.
However, if I open it locally D:/xampp/htdocs/webdesign/index.html I can see the modification I made immediately.
I restarted the Apache server from the XAMPP control panel and still don't see the changes that I made. Anyone know how to fix this?
When I changes the picture files, I can see the modification I made in the source code in localhost/index.html, but the pictures are still the same, the files are not being updated.
What can I do to speed things up?