Skip to content

Commit

Permalink
Problem: Makefile for publishing example were not working
Browse files Browse the repository at this point in the history
'aleph program' now need an 'update' argument.
Solution: Update makefile and documentation
  • Loading branch information
olethanh authored and hoh committed Apr 26, 2024
1 parent c74ed5a commit b7d9202
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/example_http_js/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ docker-publish:

publish:
chmod +x ./src/run.sh
aleph program ./src "run.sh"
aleph program upload ./src "run.sh"
2 changes: 1 addition & 1 deletion examples/example_http_rust/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tutorials/REQUIREMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tutorials/SERVER.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

0 comments on commit b7d9202

Please sign in to comment.