-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
Unable to publish CP resources #3102
Comments
How are you installing Statamic? Can you share your |
I originally installed it in September, so I'm not 100% sure.
|
Okay! Could you try clearing your composer cache with Also, do you know which version of Composer you're using? The Hopefully one of those steps should get the issue resolved! |
Running I'm using It is worth noting that it runs fine locally, and that it's only when building my app as a container that it fails. I'm wary of it being docker or my mounting of volumes, but I'm just running I found it weird that the I'll look into the above step, and failing that I'll try installing a fresh copy. If I find a solution I'll comment below. Thanks very much for your help, and feel free to close the ticket - it doesn't sound like there's an issue with the package so much as with my Docker setup. |
Alright, I'll close this issue. If you don't find anything weird in your setup, it may be worth to make an issue on this package instead? It's what is used by Statamic to do the magic stuff with the resources. |
Bug Description
I was recently moving a local version of Statamic v3 to the cloud via docker.
When it's finished running the composer dump it prints:
Can't locate path: </mydir/vendor/statamic/cms/src/Providers/../../resources/dist>
I've taken a look, and it appears that the AppServiceProvider is looking to copy over a folder
resources/dist
that no longer exists and I presume the contents of which have been moved up a level.The functionality to copy the users' directory just before it works as expected.
I'm not sure if the resources for the cp should end up in dist as a result of being compiled, and I've missed something elsewhere or if this is the intended functionality.
How to Reproduce
Local install of Statamic, upload all dir's except
node_modules
andvendor
and runnpm/yarn run
andcomposer install
as part of the Dockerfile.Extra Detail
Environment
Statamic version: 3.0.38
PHP version: 7.4
Install method (choose one):
statamic/statamic
Re-running compilation in Docker as part of build process.
The text was updated successfully, but these errors were encountered: