From b7d92027311c816ba98477581191fe08a17630c1 Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Tue, 16 Apr 2024 12:05:47 +0200 Subject: [PATCH] Problem: Makefile for publishing example were not working 'aleph program' now need an 'update' argument. Solution: Update makefile and documentation --- examples/example_http_js/Makefile | 2 +- examples/example_http_rust/Makefile | 2 +- tutorials/REQUIREMENTS.md | 2 +- tutorials/SERVER.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/example_http_js/Makefile b/examples/example_http_js/Makefile index 3b2ac89e8..6c43a3f06 100644 --- a/examples/example_http_js/Makefile +++ b/examples/example_http_js/Makefile @@ -16,4 +16,4 @@ docker-publish: publish: chmod +x ./src/run.sh - aleph program ./src "run.sh" + aleph program upload ./src "run.sh" diff --git a/examples/example_http_rust/Makefile b/examples/example_http_rust/Makefile index 0f82bdd02..dbf618cd9 100644 --- a/examples/example_http_rust/Makefile +++ b/examples/example_http_rust/Makefile @@ -15,4 +15,4 @@ publish: cargo build --release mkdir -p ./dist cp target/release/example_http_rust ./dist/ - aleph program ./dist example_http_rust + aleph program upload ./dist example_http_rust diff --git a/tutorials/REQUIREMENTS.md b/tutorials/REQUIREMENTS.md index 905ddfbbd..6a87fe359 100644 --- a/tutorials/REQUIREMENTS.md +++ b/tutorials/REQUIREMENTS.md @@ -89,7 +89,7 @@ aleph pin QmWWX6BaaRkRSr2iNdwH5e29ACPg2nCHHXTRTfuBmVm3Ga ## 3. Create your program ```shell -aleph program ./my-program main:app +aleph program upload ./my-program main:app ``` Press Enter at the following prompt to use the default runtime: diff --git a/tutorials/SERVER.md b/tutorials/SERVER.md index c34548364..2dcff54e5 100644 --- a/tutorials/SERVER.md +++ b/tutorials/SERVER.md @@ -88,9 +88,9 @@ cargo build --release Publish it on Aleph using the same procedure as with the Python example, except the entrypoint refers to the name of the binary to execute. ```shell -aleph program ./target/release/example_http_rust example_http_rust +aleph program upload ./target/release/example_http_rust example_http_rust ``` If your program takes some arguments, pass them in the entrypoint by using quotes: `"example_http_rust --help`. -ℹ️ If you get the error `Invalid zip archive`, you are probably missing the Squashfs user tool `mksquashfs`. In that case, first create the squashfs archive and then upload it using `aleph program ./target/release/example_http_rust.squashfs example_http_rust` +ℹ️ If you get the error `Invalid zip archive`, you are probably missing the Squashfs user tool `mksquashfs`. In that case, first create the squashfs archive and then upload it using `aleph program upload ./target/release/example_http_rust.squashfs example_http_rust`