Build the machine docker file and deploy to fly.io image registry
cartesi build
export IMAGE_TAG=$(cartesi deploy build --platform linux/amd64 | grep "Application node Docker image" | awk '{print $NF}')
docker tag $IMAGE_TAG registry.fly.io/cartezcash:latest
docker push registry.fly.io/cartezcash:latest
Take note of the machine/template hash.
Next visit https://sunodo.io/deploy and use the helper to deploy the on-chain component to Sepolia
Copy the ENV vars from the fly.toml produced and past them into the fly.toml in the repo.
Clear the database if it exists already by running
fly postgres connect -a cartezcash-database
and then in the database shell run
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO public;
Finally run
fly deploy
![note] Don't forget to relay the dApp its address at some point by running
cartesi send
otherwise withdrawals will be disabled
Update the DAPP_ADDRESS in the fly.fullnode.toml
Build and deploy the fullnode in one step by running
fly deploy --config fly.fullnode.toml
fly app restart cartezcash-fullnode
Update the dApp address in the config.json then commit the changes and push to main.
Run the Deploy bridge Github Pages action.