B
B
Bazis9112020-02-07 12:53:03
SSH
Bazis911, 2020-02-07 12:53:03

How to easily and quickly upload the modified code to a remote server during coding, accessible only via SSH?

There is a remote server with CentOS, accessible only via SSH. How do I code on my Windows machine and upload changes to a remote server with one click.

Answer the question

In order to leave comments, you need to log in

9 answer(s)
V
Vladimir, 2020-02-07
@Bazis911

I advise you to use the PyCharm IDE - it has various options for synchronizing local code with a remote server, including via SFTP (SSH), including automatically when files change.
Well, or, as an option - Cygwin . In it, using rsync, you can synchronize the local directory with the remote one. Game of course, but I once did it)

R
res2001, 2020-02-07
@res2001

git

V
Vladimir, 2020-02-07
@vintello

Of course, I don’t understand this, but I would look towards CI and some good system for storing code for this.

A
Alexey Strukov, 2020-02-07
@astrukov

Go to VSCode and use the Remote Development Extension .

R
Roman Kitaev, 2020-02-07
@deliro

fabric

D
Denis, 2020-02-07
@Norkotik

scp -r ./* [email protected]:/path

S
Sanes, 2020-02-07
@Sanes

SFTP WinSCP
In the simplest case. We open the server file for editing, when saving it is poured back.

E
evgeny-popov, 2020-02-07
@evgeny-popov

Of course, you should not do this (manually upload the code to the server). It is better to do it with the help of git at least. In general, if the server in your work is used simply for tests, then it is better to install a virtual machine locally and test it on it. And on the server already deploy some kind of ready-made solution. So it will be more convenient to debug.

S
Sergey, 2020-02-13
Zhumatiy @zhum

I use sublime-text and the rmate plugin. Works like clockwork.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question