N
N
not_cool2021-02-03 17:47:55
git
not_cool, 2021-02-03 17:47:55

What is the best way to send compiled files to shared hosting?

There is shared hosting with git and ssh, but without nodejs and the ability to install something. The project itself is a theme for cms, css and js files are compiled for the frontend of the project through webpack, then both the sources and the collected files are added to the git, and git pull is done on the server via ssh, all the necessary files are immediately updated.
But keeping the compiled files in the git doesn't seem to be very good, and with this option there will be problems if several people work at the same time.
If you remove the folder with the build from the git, then how is it better to send the build files to the server so that it is automatically with the rest of the files (php, etc.) that remain in the git?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-02-03
@vabka

Build the project on another machine - locally, or via Github actions, for example, and then send the compiled files to the hosting via scp or rsync.
git is a version control system, not an application delivery vehicle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question