'Windows Symlinks in Grunt Server

it seams I have a rather strange problem. I have a JS one Page application with a huge media pool. The media assets have a very short update cycle. Much shorter than the code base. So it has its own repository.

I have to develop the application on Windows OS and don't have the option of a VM solution. I created a symlink to the media folter but when I start up the GRUNT Server Task he can't find the media files. I think this is a Windows issue. When I open the index.html file with the file protocol I have the exact same problem. I have no idea why Windows can't just follow the symlink. I get a 404 no matter what I do. Has anyone ever had a problem like that and maybe a solution.

The projekt is also developed in a team so I don't want to put some kind of URL rewrite into the server configuration because it maybe wouldn't match the system of the other developers (but they also are on Windows).

Thanks for the help :)



Solution 1:[1]

The "mistake" was to go the simple way and create a symlink in the Windows UI by rightclicking.

By using the mklink command I was able to create a symlink that works perfectly with the Server

mklink /j <name> <target>

Thank you cartan for the help :D

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 PowderFan