I'm using virtual machine for the environment where I develop. PhpStorm is installed on host machine running on Windows. I can configure PhpStorm to work with remote files however PhpStorm always requires that local files be created which if modified then uploaded to remote server with FTP. Is there any way I can work with remote files without without having local copies of the files? Maybe with mounted folder?
Related
What is the point of in-place server configuration in PhpStorm, when as defined in the docs in in-place server configuration:
The web server is running on your computer, your project is under its document root (for example, in the /htdocs folder), and you do your development directly on the server.
So, what is the point of making a server connection when I'm directly editing/using the files from my server, and they are both local and remote at the same time?
Also, I've set up everything according to the docs for in-place server, and I can't find any server when I open remote hosts window.
With this server connection setup, you can tell the IDE to preview your files on your in-place web server instead of the IDE built-in webserver (http://localhost:63342) when you click the browser icon on the browsers bar
For my web database I am trying to create a webserver so I need to make a conf file. When I try to edit my conf file and save it wont let me and says permission denied. I have already given myself read and write access, but I still don't have access to the edit the file. Here is the link to the resource I am using to set up my webserver : https://github.com/orsenthil/adminer-on-mac
I've been working with local web servers and mysql on Mac for over 15 years, so this recommendation is coming from that experience.
OS X updates will destroy your local web development environment every time you do a major OS update... Don't use the built in Apache, PHP and MySQL. Use Homebrew to install independent web server components.
Now to your problems:
/etc/hosts is a file not a directory. Each line is a separate record. The line they gave 127.0.0.1 apache.local just means that your local computer will be accessible from http://apache.local. This hosts file can be used to avoid DNS lookups for any website.
The conf file you are referring to is the Apache VirtualHost file? OS X is very protective about files in etc. Have you tried sudo? If you change the permissions to your user, Apache may not be able to function.
An ASP.NET application (running on Windows server/IIS 7) has to transfer big size files uploaded by current user to an external SFTP server. Due to the file size the idea is to do this asynchronously.
The idea is that the ASP.NET application stores the uploaded file on a local directory of the Windows server. The current user can continue his work. A Windows service or a Quartz job (other tools(*)/ideas?) is now responsible to transfer the file to the external SFTP server.
(*) Are there existing tools that listen on changes of a Windows directory and then move the files on a SFTP server (incl. handling communication errors/retries)?
If there is no existing solution, do you have had similar requirements? What do we have to consider? Because the connection to the SFTP server is not very stable we need an optimized error handling with auto retry functionality.
To watch for changes in a local directory in .NET, use
the FileSystemWatcher class.
If you are looking for an out of the box solution, use the keepuptodate command in WinSCP scripting.
A simple example of WinSCP script (e.g. watch.txt):
open sftp://username:password#host/
keepuptodate c:\local_folder_to_watch /remote_folder
exit
Run the script like:
winscp.com /script=watch.txt
Though this works only, if the uploaded files are preserved in the remote folder.
(I'm the author of WinSCP)
Hi is there a way for PhpStorm to work directly on a remote server? No local files. Because as of the moment PhpStorm has local files wherein it just automatically uploads all files during save on remote.
My problem is if someone changes something remotely I need to manually download it first before seeing the changes.
It's not possible to fully operate on a remote server. Phpstorm need a local project, which contain the .idea folder. You can edit remote files without downloading them to the project folder. But in this case the entire list of features is not available.
For you can be useful the following settings:
tools->Deployment->Options:
warn when uploading over newer file
Notify about remote changes
So i've gone to Preferences->Deployment->Add->SFTP. I specified all the of the information correctly and testing the connection worked fine. I can see all of the files on the sftp in the remote server browser. However, when I click on a local file and try Upload To... I can only see the old mounted server connection (migrating servers). How can I set up my SFTP connection so I can easily upload the files.
You'll need to mark the Remote Server as "Default", and you'll want to make sure you have the Project Dir to Remote Dir mappings set up correctly.
See: http://www.jetbrains.com/phpstorm/webhelp/deployment.html