aleph.js icon indicating copy to clipboard operation
aleph.js copied to clipboard

Feature: Compiled Aleph Executables

Open ije opened this issue 4 years ago • 7 comments

compile the alephjs app into a self-contained executable with deno compile command. ref: https://deno.land/[email protected]/tools/compiler

ije avatar Feb 05 '21 06:02 ije

the command seems like:

aleph build --exe --target=windows

ije avatar Feb 05 '21 06:02 ije

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 avatar Feb 05 '21 06:02 shadowtime2000

@shadowtime2000 si

ije avatar Feb 05 '21 06:02 ije

We should also look into allowing users to bundle the entire app and the Aleph cli into a binary for cleaner deployment.

shadowtime2000 avatar Feb 05 '21 18:02 shadowtime2000

Would this allow us to deploy an Aleph website without using a Deno-compatible docker image?

hazae41 avatar Feb 07 '21 14:02 hazae41

@hazae41 yes, it's just an execute file finally.

ije avatar Feb 07 '21 14:02 ije

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.

shadowtime2000 avatar Feb 14 '21 07:02 shadowtime2000