N
N
nashivancom2021-09-10 13:37:09
git
nashivancom, 2021-09-10 13:37:09

Develop on localhost, deploy to VDS with git?

I have a project, moved it to github.
git init
git add .
git commit -m "init"
git remote add origin https://github.com/user/project.git
git push -u origin master
How now to transfer project files from github to vds? Do you need github actions for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel, 2021-09-10
@mrusklon

make your own repository on VDS, call it not origin, but VDS, and push there
either through an SFTP client, fill it with your hands, for example, WinSCP

V
Vitaly Karasik, 2021-09-10
@vitaly_il1

If you want automatic deployment subject to updating certain branches, etc. - then yes, the easiest way is GitHub Actions. There are many examples for different languages ​​and platforms.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question