Aoform is a tool to deploy a set of processes to AO. These can be defined in a processes.yaml file. It uses a statefile to keep track of deployed processes and only updates code when needed.
npm install --save-dev https://github.com/Autonomous-Finance/aoform.git
- install in your AO project
- create a processes.yaml in your project root
- set your wallet (
export WALLET_JSON="$(cat ~/.aos.json)"
) - run the deploy script (
npx aoform deploy
)
The configuration for the deploy script is defined in the processes.yaml
file. This file is located in the root of your AO project.
- name: dexi-monitor-test-v2-8
file: build/output.lua
prerun: reset-modules.lua
scheduler: _GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA
module: GYrbbe0VbHim_7Hi6zrOpHQXrSQz07XNtwCnfbFo2I0
tags:
- name: Process-Type
value: Dexi-Aggregator-Test
- name: Cron-Interval
value: 10-minute
- name: Cron-Tag-Action
value: Cron-Minute-Tick
- name: name of the process
- file: relative path to the main file to deploy
- prerun: relative path to a script that gets executed before the main file
- scheduler: id of the scheduler
- module: id of the module
- tags: list of tags to spawn the process with