copy generated files (from post-build of project) to output directory
I'm crunching my css and js into single files (the file name is
all.[hash].js and all.[hash].css).
The hash is generated and changing if one of the css/js was changed
(to ensure client will get the new file as needed).
As part of the post-build, I'm crunching the files and copying
them to my static directory.
Is there a way to inform AppHarbor publish process to copy these
files (think of it as the opposite of .gitignore :)) ?
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by tt on 23 Apr, 2011 02:35 PM
Currently, no. All files to copy need to be included in the project file, which is a bit difficult if you're generating the file as part of the build process.
You can try included a "all.js" as part of the project and overwriting it. By doing so, you'll have to add the hash part to the query string to work around browser caching.
You can also set up a handler to respond to .css and .js requests and combine the static files on the first request, if the cache cannot be found.
If none of these works, please submit a request to http://feedback.appharbor.com/
tt closed this discussion on 23 Apr, 2011 02:35 PM.