D
D
Denis Koveshnikov2018-04-02 15:04:33
linux
Denis Koveshnikov, 2018-04-02 15:04:33

How to set up automatic compilation using git on a linux server?

There is a project in C, closed , rather big, but there is no convenient way to automatically update files on the server and test. I would like to use the full power of git, but my skills with it are rather primitive, I use it only for local control, git is not raised on the server, there were attempts, but when compiling, a bunch of binaries are always created and the working directory is always changing. On the off page, there is nothing good about this at all, using the git instruction on the server is more suitable for interpreted languages, and, alas, they did not cover how to use it for compiled projects. I would like to get advice on how to properly use this tool in this case.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
awesomer, 2018-04-02
@awesomer

git is not designed for this purpose.
it's just file storage, with version control, controlled merging, rollback, and so on.
all sorts of CD / CI systems are made on the basis of the git, which remotely resemble what you described in your Wishlist.
this is what confused you.
since your question is not specific - I can’t tell you where to dig further. Perhaps chroot would be enough for you to not depend on paths. Or you need drone.io to set up automatic compilation

M
marataziat, 2018-04-03
@marataziat

https://gist.github.com/thomasfr/9691385

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question