Answer the question
In order to leave comments, you need to log in
How to automatically deploy a project with git after a push?
Previously, it just worked with FTP, ctr-s + f5 and you see the result.
I decided now to work through the git, set up the server, everything is ok.
But there is an inconvenience, after each push by hand through the console, you need to clone the project into the server folder to see the result, the question is: can this be done automatically somehow?
Answer the question
In order to leave comments, you need to log in
If you need to deploy to a production server, then https://deployer.org/ - there are a lot of examples of how to deliver the code or rollback, and to automatically deploy to a push trigger in git, then here or gitlab-ci/travis-ci/jenkins . It depends on what you are using as a git server.
As a last resort, there is always Tools->Deployment in most jetbrains ide which syncaths your local project with the one on the remote server after every ctrl+s ( doc ).
But this tool is not suitable for a production server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question