sould I push or move my ready to use php files to web server machine? that machine also can be protected using that git solution you mention?
ideally rsync, else push via ftp sync or whatever is available.
git is not the solution, but decent tooling (aka git and its surroundings). Take gitlab for example. On vps #1 you want to run your software. You setup the server, db and co, then limit ssh access to key-based, and only allow you (maintenance), emergency (boss?), and secret key (ci) login via ssh. On another server you setup gitlab, or gitea and concourse You push all your source code into a (private) repository there and allow yourself to push to master. You setup the ci to run in the tool and that does: take the current (master) branch, push (using a secret key) to the remote server via ssh (rsync, ftpsync, etc).
Обсуждают сегодня