Soft link a file under multiple environment configuration

rodge
rodge
I have the following question, in an application, I created a symbolic link file called integration.properties links to another folder which consists configuration files for different environments, such as local review, qa and staging (each has a separate folder). The link I created under my local environment is like ln -s ../../../../local/application.properties integration.properties It works fine locally. However, when I push code to git repository and deploy on review, the file should link to application.properties under review folder, should be ../../../../review/application.properties. When deploy to qa, it should be ../../../../qa/application.properties How can I do this (automatically or manually)? Thanks,

Last updated

DougR
DougR
You'll need to write a script to: [LIST=1] [*]do the clone [*]add the symlink [/LIST] There's no "automagic" way to require a set of commands be run post-clone in Git because it would immediately become a security hazard (just imagine an "rm -rf ~" as the command)...

1-2 of 2

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.

Post a reply
813 views