Skip to content
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

Issue with using Laravel Elixir and $path in CdnFacade.php #57

Closed
olimorris opened this issue May 25, 2015 · 1 comment
Closed

Issue with using Laravel Elixir and $path in CdnFacade.php #57

olimorris opened this issue May 25, 2015 · 1 comment

Comments

@olimorris
Copy link
Contributor

I've noticed a strange error using Laravel Elixir in v1.1.2.

On my production website, when I reference my CSS file in Elixir like so:

<link rel="stylesheet" href="{{ Cdn::Asset(elixir('css/all.css')) }}">

I get the following error:

Failed to load resource:
https://mybucket.s3.amazonaws.com/public/build//css/all-a6102320.css Failed to load 
the server responded with a status of 403 (Forbidden)

I've deduced it's because of the / in the following code in the CdnFacade.php file:

$path = str_replace(
            "build",
            "build/" . $this->configurations['providers']['aws']['s3']['cloudfront']['version'],
            $path
        );
Mahmoudz pushed a commit that referenced this issue May 25, 2015
@Mahmoudz
Copy link
Contributor

SHA 97a3cfd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants