edjx function deploy

Deploys a function. You must have a .wasm file created with the function for this command to complete successfully.

You must be in the function directory to execute this command, that is, the directory that contains the edjconfig.yaml file.

edjx function deploy


  1. Change to the function directory.

    root@edjx:~ # cd project
  2. Deploy the function.

    root@edjx:~ # edjx function deploy
    Successfully initiated function deployment
  3. Read the function details.

    root@edjx:~ # edjx function read project01
    Name                project01
    Function ID         b5cbcc82-70af-4198-b271-ce1acbbb6720
    Execution URL       https://601d8002-6e95-4c6e-a704-927999912345.fn.domainname/project01
    Trigger             HTTP
    Language            Rust
    Runtime             WASM
    Timeout             5s
    Memory Allocated    128.0 MB
    Compute             0 GB-SEC
    Network             0 B
    Requests            0
    Created By          username
    Created At          2021-11-05 13:13:57.952 -0700 PDT
    Last Updated        2021-11-05 13:14:04.326 -0700 PDT
  4. Copy the Execution URL.

  5. Paste the URL in a web browser to verify that the function was deployed to the EDJX Network.