A
A
Anya Ivanova2021-04-22 10:47:59
git
Anya Ivanova, 2021-04-22 10:47:59

How to deploy a project from GitHub to production?

I took a copy of the production site and deployed it on a local machine. Installed git locally and testing on a test site. Next, I cloned the project on GitHub and now the question arose of how to properly deploy it to the production site.
I tried to clone git clone [email protected]:name/project.gitit, but it did not work, because the folder is not empty (there is an old version of the site)
Please tell me how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2021-04-22
@saharok13

Connecting the repository is not in the early stages of development, it is always specific. The best thing is to store the project in a new folder, configure everything there and redirect the web server traffic there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question