C
C
centrin02014-03-14 07:23:39
PHP
centrin0, 2014-03-14 07:23:39

How convenient is it to edit a site on a remote server?

There is a remote test server. There's a site in php and deployed git.
You need to make changes to the site.
How, in which IDE, can this be done and in what way is it more convenient?
Now I edit and watch the site on the local server, then upload it to git, then I look at how it behaves on the test server. But it's inconvenient. How can I skip testing on a local site so that I can edit on a test site right away? At the same time, do not keep a local server.
Editing via ftp one file at a time is inconvenient.

Answer the question

In order to leave comments, you need to log in

9 answer(s)
R
Rpsl, 2014-03-14
@centrin0

Set up dklab.ru/lib/dklab_realsync and work with the site as if it were local, from any convenient editor.

A
Alexey Ashurok, 2014-03-14
@AotD

1) phpStorm,
2) "New project from Existing files",
3) "Web server is on remote host, files are accessible via FTP/SFTP/FTPS"
4) ...
5) Tools > Deployment > Automatic Upload (always)
Total we have a local copy and a remote one. We edit locally - it is automatically uploaded to a remote server, we check it there.
I have been working like this for a couple of years - the flight is normal

V
Vladimir Shishmintsev, 2014-03-14
@Pingvi

Yes, almost anywhere, starting with phpDesigner, phpStorm, etc and ending with Notepad ++ with the appropriate plugins

A
Anna Bakurova, 2014-03-14
@Libris

use sublime text 2 (with emmet installed) and how to ftp is better to use filezilla. If you need help with these programs, please contact us.

O
OnYourLips, 2014-03-14
@OnYourLips

Any IDE: the file is automatically sent to the server via ssh when it changes.
However, the problem is that if you change a file on a remote machine, it will not appear for you.
We need normal synchronization, and the only normal solution found is to use a virtual machine for the dev machine (vagrant).
Using an editor to work on code is just stupid. There is an IDE for this.

V
Vladimir Sokolovsky, 2014-03-14
@inlanger

Look towards ftpfs.

M
Mikhaildmitrienko, 2014-03-14
@Mikhaildmitrienko

I use the SFTP plugin for Sblime Text3, in my opinion the best option, I worked with note ++ NppFTP is also not bad, but everything is presented better in Sublime (my opinion).

W
wkst, 2014-04-02
@wkst

I used PSPad for such purposes, it allows you to edit files "directly" on FTP. in quotation marks, because, of course, when opening a file, it downloads a local copy of it to itself, and loads it when it is saved, but this is all transparent.

L
leoismyname, 2014-05-13
@leoismyname

I do not like FTP, so I chose another option for myself.
By the way, I also do not have a local web server.
I take the working code from the turnip, create a project in Sublime Text based on the working directory, in the project settings ( for the SublimeRsyncer synchronization plugin ) I specify the connection parameters to the remote machine, the local directory for synchronization (or several), the remote directory, the list of directories to exclude synchronization. I click "Save" and all files are sent to a remote server using rsync , a tool made specifically for synchronizing files over a secure channel while minimizing traffic. And then, when saving individual files in a local copy, changes fly to the server.
Some of my colleagues (those on Windows) use Unison , but, as for me, this is raping my screw, since synchronization with colleagues, as a rule, occurs constantly, and not when saving certain files. And if the work goes on with several projects at the same time, then with several Unisons running, everything starts to get dull.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question