smoothie
smoothie copied to clipboard
Cannot initialize Smoothie due to assets folder path issue
Upon running mix smoothie.init
, I receive the following error:
spawn: Could not cd to ./assets
I am using the latest commit, and my project assets are located at ./web/static/assets
.
@kevinwo
Are you using a version of phoenix pre 1.3 ?
I think we must have lost compatibility for pre 1.3 versions by assuming assets are in ./assets
See here
I think it would be straight forward to make it cater for both directories...
Gotcha. I am using Phoenix 1.3, but now wondering if maybe I used a deprecated mix project initializer that created a pre 1.3 folder structure. Now that I'm comparing, it does look like my folder structure is pre 1.3.
I temporarily overrode the value for init.ex's @assets constant, and after getting the mix smoothie.init
to work, realized I wanted to actually target my project root, where in pre 1.3 the node_modules folder and package.json file live.
yea... this is still an issue really though.. we should be supporting both paths... sure, leave this issue open for now...