문제

I am using guard and therefore I have configured my Guardfile with my host's IP address where notifications should be sent.

How can I do this customization outside of the Guardfile so that only I can see it, not the rest of my team members?

도움이 되었습니까?

해결책

From the shared configurations page in the Guard wiki:

If a .guard.rb is found in your home directory, it will be appended to the Guardfile in your current directory. This can be used for tasks you want guard to handle but other users probably don't.

다른 팁

You have several options -- you can either read the address from an environment variable or discern it with code. However, you can probably just use '127.0.0.1' which is the localhost address and should work for anyone to point to their own machine.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top