S
S
Sergey2021-01-17 19:23:27
IDE
Sergey, 2021-01-17 19:23:27

What are the IDE to work directly on the server?

I develop websites directly on the server via SSH. I do not install anything on the local computer. It is so convenient for me, especially when I have to work on different computers. I'm currently using the Notepad++ editor. I would like to know if it is possible to use more advanced editors like phpstorm, sublime, etc. in this mode. so that you can see all the folders and files of the project at once and save the files via SSH on the server when saving?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
Ilya, 2021-01-17
@New_Horizons

Well, in the same phpstorm, you can configure deployment so that by ctrl + s the change is immediately uploaded via ssh, synchronization with a remote server, etc.
But, as noted in the comments, the idea is so-so, especially if it is a combat server. Pour something wrong, there will be pain.
In a good way, it is better to deploy a local copy and work with it (even if it is a virtual machine, you can use the same deployment in phpstorm), and then upload it to the production server using VCS. (well, or use some deployment tools, but this, so to speak, is the next level)

X
xmoonlight, 2021-01-17
@xmoonlight

How to set up Sublime to work via sftp: here .
If you edit "live" - ​​always branch first based on some variable (ip/user/etc.), and after checking - remove the branch.
If something goes wrong, then there will be nowhere to roll back ...
Get used to working immediately through one of the version control systems .
PS: When you need to quickly fix it in a specific place, you can use Far under linux: here is an article .

A
AVKor, 2021-01-17
@AVKor

Vim with the necessary plugins installed on the server (this is much better than Notepad ++). ssh to the server and start Vim there (no gui).

A
Adamos, 2021-01-17
@Adamos

PhpStorm stores project files in a folder above the project.
That is, if your site is located on the server at /home/webuser/www/public, then you can easily mount this same /home/webuser/www from the server to /mount/devsite and tell Storm that the files are local and the root sources - /mount/devsite/public.
Storm will save its goodness in /mount/devsite/.idea, /home/webuser/www/.idea will appear on your server - and on whatever computer you repeat the mount and launch of Storm - it should pick up this project. True, provided that on all these computers Lin.
PS And, by the way, it would be nice to have a .git folder there, as already mentioned above. Version control can be useful even on a development server. Moreover, in Storm it is quite naturally supported.

A
akimdi, 2021-01-18
@akimdi

Do you mean this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question