A
A
Alexander Arbuzov2018-03-14 16:35:34
git
Alexander Arbuzov, 2018-03-14 16:35:34

How do you store images when developing/maintaining a site?

We are planning to implement Git. Until now, there was no version control.
There are several nuances that I would like to clarify.
If the sources are clear, what can be stored locally and work with the same local dev base. It's not entirely clear what to do with the pictures. Carry all the pictures?
It's about a store where there are a lot of pictures of goods. If you periodically update the data with the combat server, then you won’t be able to work without pictures.
In general, I think the idea is clear. How is it organized for you?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2018-03-14
@sergey-gornostaev

The project should have separate static resources and separate media files. Images belonging to the first category, that is, being an integral part of the design, must be added to the repository. And images related to content should not.

O
Optimus, 2018-03-14
Pyan @marrk2

For pictures, an absolute path is squeezed in, and even on the test server and for developers, they are pulled from the prod server. Keep a separate copy of pictures for development? What's the point?

I
Igor Vorotnev, 2018-03-15
@HeadOnFire

In addition to the advice of respected gentlemen above, as an option - rewrite rules at the server level, which will broadcast paths to the prod on the LAN, and load media files from there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question