Answer the question
In order to leave comments, you need to log in
What is the best way to push from github to production server?
I read here how people use github in their website development and decided to implement this approach in their work. Everything is clear and beautiful, but a small question arose, which everyone technically bypasses in their manuals.
How development is being done is more or less clear to me. As a result, we got the finished product and want to deploy it to the production server. The question arises - is this done simply by the git clone command? And as a result, a .git folder is formed on production?
Or is it somehow transferred to production in some other way?
Sorry for the noobness.
Answer the question
In order to leave comments, you need to log in
no, no git clone (although this can be seen as a primitive form of deployment). We assemble the build (roughly speaking, an archive with everything you need, all third-party dependencies, etc. to unpack and run) and deploy it. Rolling migrations, clearing caches, etc.
It is fashionable now to arrange Continuous_Integration. There are free services wercker.com , https://travis-ci.org/. Such a service will catch the github_hook after the commit, test it in the specified environment, and if the tests pass, it will deploy the stage to production with the possibility of rollback. In such a pipeline, you can develop on a tablet or mobile phone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question