-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI Flush & Asset Permissions #81
Comments
Hmm, yeah it's just a bit too much magic, isn't it? We can't mandate that you run |
I suggest an env var for cli, and assume Apache if not configured. |
one issue when implementing this is the file permissions on the generated @tractorcow has suggested something similar to this to address a part of the issue:
|
I've added #91 and silverstripe/silverstripe-framework#7488 to address this issue :) primarily the Other things tweaked were the forgotten but needed file_permissions leniency, and a check before setting file visibility (tiny performance boost). |
When running the following from the command line (in SS4)..
The
/assets/.htaccess
and/assets/.protected/.htaccess
files don't get created. However, running the same thing from the browser causes them to be created (only a flush is actually needed). At first I thought it may have been a permission thing (similar to silverstripe/silverstripe-framework#3092), however I've narrowed it down to the following..silverstripe-assets/src/Flysystem/AssetAdapter.php
Line 124 in 3eefcec
When hitting this from the browser, the type comes through as apache (in my case). However doing this from the command line, the type comes through as php. So neither of the following are hit..
This is currently my work around, but it seems like we should be able to pass something through to the cli-script such as
type=apache
at the very least.Thoughts?
Pull requests
The text was updated successfully, but these errors were encountered: