Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Wrong manifest path in services/ElixirService.php #8

Closed
juliencharette opened this issue Nov 23, 2016 · 1 comment
Closed

Wrong manifest path in services/ElixirService.php #8

juliencharette opened this issue Nov 23, 2016 · 1 comment

Comments

@juliencharette
Copy link

The following

$this->manifest = CRAFT_BASE_PATH . $this->publicPath [...]

should be

$this->manifest = dirname(CRAFT_BASE_PATH) . '/' . $this->publicPath [...]

or something like

craft()->config->get('environmentVariables')['basePath']

As per craft docs:

Craft uses CRAFT_BASE_PATH as the starting point for finding all of the folders traditionally located in craft/. So basically the plugin tries to read the manifest under ./craft/public/build/... but will never find it there, it's generated by elixir under ./public/build/....

@sweetroll
Copy link

+1

I got mine working with the first suggestion:

$this->manifest = dirname(CRAFT_BASE_PATH) . '/' . $this->publicPath [...]

jasonmccallister pushed a commit that referenced this issue Dec 30, 2016
* Fixed manifest path closes #8 Thanks @juliencharette

* Update version number and release notes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants