-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Cloudflare Worker deployment (#1081)
- Compile Exograph to WebAssembly with Cloudflare-specific platform APIs. - Introduce a new `exo deploy cf-worker` command - Introduce exo-env crate to abstract the concept of retrieving values from the system environment or a provided map (and may be extended to other sources in the future). - Use DATABASE_URL as a fallback to EXO_POSTGRES_URL. - Drop the `EXO_POSTGRES_USER` and `EXO_POSTGRES_PASSWORD` environment (instead relying on the database URL to contain the user and password).
- Loading branch information
Showing
30 changed files
with
1,157 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(cd crates/server-cf-worker && wasm-pack build --target bundler --out-name exograph_cf_worker) | ||
|
||
mkdir -p target/cf-worker-dist | ||
cp crates/server-cf-worker/pkg/*.wasm target/cf-worker-dist | ||
cp crates/server-cf-worker/pkg/*.js target/cf-worker-dist | ||
cp crates/server-cf-worker/js/exograph_cf_worker.js target/cf-worker-dist | ||
cp crates/server-cf-worker/js/index.js target/cf-worker-dist | ||
cp LICENSE target/cf-worker-dist | ||
(cd target/cf-worker-dist/ && zip ../exograph-cf-worker-wasm.zip *) | ||
|
Oops, something went wrong.