-
Notifications
You must be signed in to change notification settings - Fork 33
Binary resource packaging #156
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
Comments
This is really hot, anything will be already loaded and fetched directly from RAM. |
Not sure if this helps, but this guy has done a fair bit of research and comparison of various resource embedding methods for Go: http://tech.townsourced.com/post/embedding-static-files-in-go/ |
@pharrisee Thank you, sure I will read it. I'm currently doing my homework; every input helps to shape an idea. |
@pharrisee Given post is really helpful, he has done quite analysis on this topic. I'm gonna a gather plus points from overall and draw a direction for aah. Will make good start point for aah single binary goal. |
Feature implemented, available on edge. Command is |
Same happens when running 'aah b -s'. Any ideas? |
@pharrisee Interesting. aah VFS is path separator is always forward slash |
@pharrisee I have verified on windows and addressed the path handling on VFS and embed build. Since you're already on aah edge, run Now it should be alright, please let me know if you come across any issues. Build: |
OK, updated to new release with 'aah s -r' had error:
removed all of the {src,pkg}/aahframework.org directories, and the bin/aah.exe and did another install ran 'aah s' and get the same error. |
@pharrisee I'm really sorry. I have committed Just did it. Please try again. |
OK, did a complete cleanup and reinstalled, switched to edge and get:
|
Just now docker build got successfully completed the aah edge version. https://hub.docker.com/r/aahframework/aah/builds/br68v54j4p9cxr9sski7fcu/ aah cli executes git cmd internally; it may be the interim git issue. I am going to verify the edge version build on fresh VM. |
had to pop to pharmacy, just got back and switched to release, then back to edge seems ok this time. Apologies for that :) |
Quick test shows that it compiled a new Out-of-the-box app fine :) woohoo! Good Job. |
No worries, thank you for your patience and time. |
🎉 I am very glad to hear your feedback. Thank you. |
you are very welcome, and thank you for your work on these features, will make it so much easier to get it adopted at my work place. Just FYI I work in a major UK university (I'm the web architect) and will be doing my damndest to introduce Aah there on a major new project. If I manage it I'll be writing up the experience at a later date. If you're interested in the results I can let you know how it goes. |
Yes, I am interested in it. Please keep me posted when you get a chance. Also, your pointers for improving aah are very welcome. |
@pharrisee I thought to share with you. Because documentation gonna take a while.
Configuration goes in #------------------------------------------------------------------------
# Virtual FileSystem (VFS) configuration
#
# Doc: https://docs.aahframework.org/vfs.html
#------------------------------------------------------------------------
vfs {
# Adding custom mount points.
#
# Configured mount points directories and sub-directories
# are embedded into the aah binary during the single binary build.
#
# Note: Embed packaging uses same exclusion list from config `build.excludes`.
mount {
# Choose a unique key name
#my_mount {
# # Mount point (path separator is '/').
# mount_path = "/my_mount"
#
# # Physical FileSystem path.
# # Note: Only absolute path is accepted.
# physical_path = "/Users/jeeva/path/to/physical"
#}
}
# This config speeds up the single binary build process.
# No need to spend time in gzipping; compressed content type.
#
# Even without this config, aah decides best on what to gzip.
no_gzip = [".png", ".jpeg", ".jpg", ".gif", ".bmp", ".tiff", ".tif"
".woff", ".woff2"]
} |
Documentation is done 😄 |
Can there be an option at build time to package resources (views, css,js,img and config) into the executable for easy one file deployment?
There are numerous packaging libraries/applications available:
to name but a few.
Updates:
aah build --single
oraah b -s
The text was updated successfully, but these errors were encountered: