-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Description
Currently, you either use assets:install
to get a hard copy or assets:install --symlink
to get a symbolic link. In reality, we always want a symbolic link, unless we're on a system that doesn't support it. Currently, I see:
-
People use hard copy (which is the default) then wonder why their CSS files aren't updating
-
In ezPublish, I think they default to symlinks. So a user on Windows (or at least a Vagrant box with a Windows host machine, where apparently you need some special setup to get symlinks to work in the VM) has a bad time. This happened to the PHP managing editor at SitePoint (@Swader) and he definitely had no fun :).
I propose that we make assets:install
smarter:
A) Create a symlink, unless symlinks aren't supported. In that case, fall back to a hard copy
B) If hard-copy is used, we should print out a message about this (there is a message now that you're using the "hard copy" option, but this can be clearer).
C) If using symlinks fails for some reason (even if we detect that symlinks are supported), we should fall back to hard-copy and tell the user about it. I think this is what happens on a Vagrant UNIX box that's backed by Symfony. @pborreli tells me that the Vagrant box needs special config and to be run as root for these to work. I want to catch these failures and help the user.
Thanks!