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

Error on empty collection #191

Open
barryvdh opened this issue Aug 2, 2013 · 0 comments
Open

Error on empty collection #191

barryvdh opened this issue Aug 2, 2013 · 0 comments

Comments

@barryvdh
Copy link

barryvdh commented Aug 2, 2013

This is probably an edge case, but I have a collection, ie 'admin', which can contain both javascript and stylesheet.
So in my head I call @Stylesheets('admin') and in my footer @javascripts('admin'). But when there is no stylesheet, it tries to write to app/storage/meta/collection.json.
This is no problem in development, but when I publish the app to production (with Rocketeer) the following order happens:

  1. Clone, install and set app/storage to 777 recursively.
  2. Build all basset collections (and thus create app/storage/meta/collection.json)
  3. When the previous described case happens, it cannot write to the meta files, because it is created by the CLI user, not web (and before chmodding), so an error occurs, but the layout continues to be created, but using a different layout file (probably because of the error template or something).

So it is pretty strange, but as soon as I remove the stylesheets('admin'), everything worked as useal again.

Obviously this is easy for me to work around, by just removing that line or splitting the collections in css and javascript, but I think this shouldn't actually occur.

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

1 participant