Skip to content

Commit

Permalink
fix build path for elixir
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Schlick committed Jul 30, 2016
1 parent 9461b69 commit 42ecc7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ protected function registerElixirLinks()
if (config('server-push.autolink_elixir')) {
$revPath = public_path().'/build/rev-manifest.json';
if (file_exists($revPath)) {
$revMap = json_decode($revPath, true);
$revMap = json_decode(file_get_contents($revPath), true);
if ($revMap) {
foreach (array_values($revMap) as $path) {
$instance->queueResource('/'.ltrim($path, '/'));
$instance->queueResource('/build/'.ltrim($path, '/'));
}
}
}
Expand Down

0 comments on commit 42ecc7c

Please sign in to comment.