Y
Y
Yaroslav2022-04-15 19:30:26
git
Yaroslav, 2022-04-15 19:30:26

How to test a GIT project on a remote machine?

There is some project. It is convenient to edit the code on the local machine. But it’s convenient to test on an external server (you need a white IP, valid certificates, etc.).

Now I do it according to such an inconvenient scheme, after each edit (every 15 minutes):
1. locally: git add/commit/push on github (and it’s also inconvenient to write commit. I want something meaningful, but in the heat of debugging, the code is sometimes one character different)
2. remotely: pip3 install git+.... , restarting the service
3. the test itself with the remote server

Somehow too crooked, it seems to me. All the same, extra time is spent on each such action. How can you simplify? Maybe somehow you can automatically deploy it there if the repository is updated?

I tried sshfs before, and ssh feature in visual code to edit remotely. But it didn't work either. Especially now, with VPNs that sometimes break.

But I'm willing to listen to other options.

How is it usually done the right way?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question