-
Notifications
You must be signed in to change notification settings - Fork 76
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
Basset serving development collections on production environment #218
Comments
The production environment set in the Basset config matches the one you've You should just switch to Grunt though. I'm no longer supporting this
|
Yikes. Might want to put that on the front page. I ditched my laravel-guard workflow for Basset after I realized that wasn't supported. Looks like I will have to invest some time with grunt and creating my own tasks. Not quite so easy as 'just switching to grunt' however for most people. Then you get the headaches of ruby management. Conflicts with packages. Dead ends and frustrating terminal sessions ..but that's not for here. I was about to answer this question earlier. It looks like the storage > meta folder that basset stores its fingerprinting in collections.json has a git ignore on all files. So even though I have one generated locally - it is never pushed to my git, never deployed with Capistrano and therefore no record that the production collections may have been built. As a dirty work around i let git add the collections json as an exception. Not ideal, but until I get my grunt chops (and new hosting) it's going to have to do! |
Yeah I haven't had a chance to update the read me, sorry.
|
I have also invested a significant bit of time into this package in the last couple months. A heads up would really be appreciated. Does Grunt compile less stylesheets and all that as well? I'm also getting frustrated about my production box not using the compiled builds. It builds fine. But then just serves the development files. I think monolog should log an info or notice when in production, about why it decides not to serve production files. I.E. "Fingerprint stale" "cache clear needed" "files need to be rebuilt" etc... Additionally, if the files need to be rebuilt, a note as to why would be helpful. I run php artisan basset:build --env=production sometimes and even though I didn't change a file, it'll randomly rebuild it rather than saying no build required. |
hey Jason, |
This is frustrating me so much I might have to kick a wide brimmed hat off a goose.
The problem:
Arggghhh!!
Its like the manifest is not seeing that the production files have been generated and is serving development assets.
Again, i cannot run a
php artisan basset:build --production
on the server as it doesnt have gems, therefore no uglifyjs etc etc.So: anyone got any ideas about why basset is not recognizing the production assets / where i should look for clues?
Help greatly appreciated (im so close to my ideal workflow!)
The text was updated successfully, but these errors were encountered: