A
A
Alex Wells2016-06-12 14:46:36
git
Alex Wells, 2016-06-12 14:46:36

Subrepo for Laravel resources?

Hello. There is a project on Laravel as well as two private repositories on GitLab. Here's the thing: the layout designer needs access to the site's resources, but he absolutely does not need access to the site's source code. There are two repositories for this purpose: site and site-assets. Site git hangs in the root directory, and now I need to make the public/assets and resources/views directories hang in the site-assets repo. Also, when these two directories change in any of the repositories, the second one should also be updated. Is such a miracle realizable and how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Novikov, 2016-06-12
@BOOMER_74

This is possible, in part, with gitmodules . The only problem is that you have to make two repositories for public/assets and resources/views, or add a submodule to the root and suffer with the gitignore setting (I never did this, I'm not sure if it will work).

O
OnYourLips, 2016-06-12
@OnYourLips

Here's the thing: the layout designer needs access to the site's resources, but he absolutely does not need access to the site's source code.
It's a delusion.
Without access to the source, he will not be able to run a copy of the project for himself, and his productivity will decrease several times .
In addition, taking templates and assets out of the project is a very bad idea. They are part of the project.
Is such a miracle realizable and how?
Three obvious ways:
1. gitmodules. The method is classic, but very inconvenient.
2. Transfer resources to a separate package for composer and collect via gulp.
2. Transfer resources to a separate package for npm and collect via gulp.
The second and third methods are much more convenient.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question