aleph.js
aleph.js copied to clipboard
Feature: Compiled Aleph Executables
compile the alephjs app into a self-contained executable with deno compile command.
ref: https://deno.land/[email protected]/tools/compiler
the command seems like:
aleph build --exe --target=windows
Since compiled binaries can't use import straight for files relative to binary/executable we would have to rewrite our system to read the file and then convert it to base64 and then use import but we would still have to wait for base64 importing in binaries denoland/deno#9397. There are probably some other things we would need to rewrite for this. Could possibly look into using something like Leaf.
Don't forget to upvote the feature request for base64 imports in binaries
@shadowtime2000 si
We should also look into allowing users to bundle the entire app and the Aleph cli into a binary for cleaner deployment.
Would this allow us to deploy an Aleph website without using a Deno-compatible docker image?
@hazae41 yes, it's just an execute file finally.
We could allow kind of programmatically invoking the CLI then users could have a file which calls Aleph with the config and then that file could be compiled into a final executable - though not as sure.