I
I
Ivan Kulakov2021-09-01 18:53:52
System administration
Ivan Kulakov, 2021-09-01 18:53:52

How to set up CI/CD on shared hosting?

Hello. There is a web application (regular site) naked php + mysql, the front is assembled by webpack, git is used.
There is a virtual hosting, and I just got tired every time I deployed to prod manually via ftp to upload files to the hosting.
What are the ways to CD for regular hosting? Access to the home folder via ssh is available.
And somehow I would like to work with database migrations so that each time I do not manually dump tables for the local machine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Volkov, 2021-09-03
@voleg4u

If git is used, then it should be used.
git pull on the server and the new version is in place.
Just make sure that .git is not available to Apache, otherwise it will break.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question