Skip to main content
Git: following symbolic links: GitBSLR VS bindfs

More and more nodejs libraries are being associated with PHP projects. We can manually copy the files (JS,CSS) into our PHP project, but this becomes rather tricky when we're working on several projects or in situations where the style files are used by several PHP projects. 
To speed things up locally, you make symbol links and that's all there is to it. But when it's time to publish, it's a pain to copy and paste because git doesn't follow symbolic links.
In this situation, we tested two approaches using the  GitBSLR and bindfs utilities on a Debian Linux environment.


installing GitBSLR

Installation takes place in /usr/local

/usr/local$ sudo git clone https://github.com/Alcaro/GitBSLR.git
/usr/local$ cd GitBSLR
/usr/local/GitBSLR$ sudo ./install.sh

Test your installation:

GITBSLR_DEBUG=1 git version


If all goes well, git should be able to follow the symbolic links.

 

installing Bindfs

sudo apt-get update -y
sudo apt-get install -y bindfs

How to use :

bindfs /siteweb/AppVuejs/app-form/appadmin/  /siteweb/DrupalModules/appformmanager/appadmin

We have the files (JS,Css) located in /siteweb/AppVuejs/app-form/appadmin/ and we would like to have a copy in /siteweb/DrupalModules/appformmanager/appadmin.

Profile picture for user admin Stephane K

Écrit le

Il y'a 1 year
Modifié
Il y'a 2 weeks
Loading ...
WhatsApp
Support Habeuk : +237 694 900 622
WhatsApp Send