docs/developers/backend/deploy.md
The first step to deploy your application is to configure a wallet. This will determine where the application will be deployed: either to a local net or to the public deployment (i.e. a devnet or a testnet).
To configure the local network, follow the steps in the Getting Started section.
Afterwards, the LINERA_WALLET, LINERA_STORAGE, LINERA_KEYSTORE environment
variables should be set and can be used in the publish-and-create command to
deploy the application while also specifying:
linera publish-and-create \
target/wasm32-unknown-unknown/release/my_counter_{contract,service}.wasm \
--json-argument "42"
To configure the wallet for the current testnet while creating a new microchain, the following command can be used:
linera wallet init --faucet https://faucet.{{#include ../../RELEASE_DOMAIN}}.linera.net
linera wallet request-chain --faucet https://faucet.{{#include ../../RELEASE_DOMAIN}}.linera.net
The Faucet will provide the new chain with some tokens, which can then be used
to deploy the application with the publish-and-create command. It requires
specifying:
linera publish-and-create \
target/wasm32-unknown-unknown/release/my_counter_{contract,service}.wasm \
--json-argument "42"
To interact with the deployed application, a node service must be used.