Hard links in WebStorm
I have many different containers (micro-services) built within the same project. They have a shared config library that will retrieve values for keys from a state resource when requested at start up (rather than store them in the container itself). I used hard links for this purpose as the file needs to be consistent across projects. Symlinks, while they'd work debugging in the IDE and CLI, will not put the contents of the file into the container when I build it since they're just references. Sure, I could try to manage this with Dockerfile, but it still breaks consistency between the containers within the IDE, which impacts the process of development.
My searches only located a post about this from 2012 PHPStorm [1], wondering if there is something similar in 2017 WebStorm.
Any help would be appreciated.
-Steve
Please sign in to leave a comment.
sorry, help with what? it's not clear what problems using hard links you have faced.
Is it about breaking hard links on saving? disabling "safe writes" (Use "safe write" in Settings | Appearance & Behavior | System Settings) should help
Thank you, Elena. That's the setting I was searching for but couldn't find. I realized after that I'd not stated the problem, but hoped the link provided enough context.
Yes, the problem was that editing a hard-linked file in the IDE would break the link to the source. Looks like 'safe write' solved it for me.
Thanks, again!
I see, thanks for clearing it up:)