-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Asset container drivers not loaded when installing a starter kit with starter-kit:install
command
#9884
Comments
From digging into this, it looks like the issue is actually happening when Statamic attempts to create the super user, which is the step before a starter kit's post-install script runs. For some reason, it looks like the custom disks configured in Peak's Probably needs some more digging. |
Odd thing is also: it doesn't seem to go wrong consistently. |
I've done a little more testing and it seems like this issue also exists on Statamic 4 too, it only happens when you install a starter kit into an existing site, not when creating a fresh site with the CLI.
|
starter-kit:install
starter-kit:install
starter-kit:install
command
Ah, nice find. Yeah I'd never actually done that until now, to test v5. It's not a blocker then, glass half full! |
Bug description
I'm sorry for this one in advance.
To test my post install script in Peak I install Statamic v5 using
composer create-project
and then runstarter-kit:install --local
. After creating a super user I get anInvalidArgumentException
:Peak contains a bunch of custom filesystems that are being used by the asset containers it ships with. It seems those don't get properly loaded during the install. This does work as expected in v4.
The solution is to run the install command a second time.
How to reproduce
composer create-project --prefer-dist --stability=dev statamic/statamic:dev-master
php please starter-kit:install studio1902/statamic-peak --local
Note: I'm installing a local version of Peak because the v5 version isn't released yet. You could replicate this using this statamic-peak.zip.
You will also need: peak-addons.zip
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
None
Additional details
No response
The text was updated successfully, but these errors were encountered: