What is the point of in-place server configuration in PhpStorm when server files are both local and remote at the same time? - phpstorm

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

Related

Pulling remote changes from a development server in PhpStorm

For most projects, I work in a local Dockerized setup, but once in awhile, I have to work on a project that lives on a remote development server. Using tools > deployment > configuration, I have set up sftp access to the server.
Now I can't seem to find a way to download the relevant files from that server.
I could swear that there used to be a menu option under Tools > Deployment to do this. Something like pull files from server.
Did this option go away with a recent update? Is there another way to do this from within the IDE (preferably without pushing to version control every time I want to test a change)?
===
Edit: I am using PhpStorm 2019.2. The contents of the Deployment submenu are:
Configuration
Options
Automatic Upload
Browse Remote Host
I have tested the sftp connection from within the configuration screen in PhpStorm, and it is working. Browse Remote Host also appears to work.

Remote InDesign server entrance to my local folders

I have used InDesign server locally and in properties, it goes like
indesign.instance=http://localhost:20055and works fine.
Now I try to use instances running on a remote server and in properties it goes as follows:
indesign.instances=http://##.#.#.11:7700,http://##.#.#.11:7701,http://##.#.#.11:7702
and my app connects to the server where InDesign server instances are running. When I execute my script it fails with an error that the file does not exist or cannot find a directory. I understand that instance does not know anything about my file system. But I know for sure it can be connected.
Could you please advise me on the correct approach?
You could share the file system you are working on over a shared folder. Then your Client will place a file into the shared file system and the server can find it.
Or, if it is a remote server without any direct network access, build a document service to upload a file to the server over HTTP.

How could I automatically upload files from my directory to server? [duplicate]

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)

PhpStorm - working on a remote server

I have never used PhpStorm before for remote development because I used to work locally.
I am wondering if there is a method to set PhpStorm to work in such a way so it will be identical, in terms of functionality, to local development?
At least, debugging and jumping to functions/variables declaration across the whole project?
Tried to google it but found nothing. Maybe someone knows?
There are two ways to work with remote server development :
With a physically server
With a Virtual Machine locally
Those 2 ways are identical workflow parameters for working with this.
In PHPStorm the main area for parameters workflow deployement on remote server is : PHPStorm > Settings > Build, Execution, Deployement > Deployement
In this area you config the connection on your remote server (you before must config access on your remote server). SFTP is the best way to use this connection.
Most important to select where you want to send/push your modified code with Root path. Upload manually or use the sync auto functionality of PHPStorm use this parameter.
Mappings tabs is not very important you can keep this without change except for 'Deployement path on server' which just type '/' character if you have selected the good 'Root Path' in tab before.
For starting you can forget the Excluded Paths tab. after if you work on symfony framework you use this to exclude the vendor directory.
Don't forget to set the options 'use as Default' if you want to upload or sync auto more fastly and friendly.
Now you must parameters and config correctly your remote server for server be able to run the code which send it with PHPStorm. Dependly on your framework or other technologies you use.
Finally you have :
PHPStorm config OK for send correctly your modification code (auto or manually)
remote server config OK for executing and running correctly the code you are before sending from PHPStorm to your server remote
WARNING : you never run your website into your local OS.
IMPORTANT : config a web server on your remote server and don't forget to install layer for PHP executing script.

how to upload to sftp phpstorm (mac)

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