I am currently attempting to implement a library which takes JS and CSS files, minifies them, and writes the minified result to a file.
From what I am gathering, I am not able to do this on AppHarbor, as AppHarbor does not allow writing to the filesystem (except for App_Data). I am able to write the minified files to App_Data, but of course IIS will not serve resources from that folder.
Suggestions?
#1 Posted by leedumond on 07 May, 2011 10:14 PM
Poking around some, I just saw an option that allows one to allow write access to the filesystem in an application. Must be a relatively new feature?
Anyway, I think I'll be able to work with that.
#2 Posted by friism Support staff on 07 May, 2011 11:16 PM
Yes, you can do that, but be aware of the caveats (files not synched between multiple application instances and not persisted between deploys). We'll try and come up with a more reliable solution.
friism closed this discussion on 07 May, 2011 11:16 PM.
leedumond re-opened this discussion on 07 May, 2011 11:32 PM
#3 Posted by leedumond on 07 May, 2011 11:32 PM
I'm using Squishit (Justin Etheredge's bundling library), which creates bundles on the fly if they don't already exist. That being the case, lack of persistance between deplays should not be a big issue, as the first post-deploy page hit will take care of that.
Files not being synched between multiple application instances could be an issue... I'm not sure. Probably not, as long as each instance only reads from / writes to its own instance?
#4 Posted by friism Support staff on 07 May, 2011 11:34 PM
I think you're just fine using Squishit (but we'd still like to see whether we can come up with something better).
#5 Posted by leedumond on 08 May, 2011 04:13 PM
Thanks... agreed, hopefully something better can be arranged. Keep up the good work!
friism closed this discussion on 08 May, 2011 05:58 PM.