⚠️ Archive Notice: This repository is archived and no longer maintained. It was originally developed by AF (Autonomous Finance). This project is provided as-is for historical reference and educational purposes.
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 aoform- Install in your AO project
- Create a
processes.yamlin your project root - Set your wallet (
export WALLET_JSON="$(cat ~/.aos.json)") - Run the deploy script (
npx aoform apply)
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
resetModules: true
scheduler: _GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA
module: cNlipBptaF9JeFAf4wUmpi43EojNanIBos3EfNrEOWo
tags:
- name: Process-Type
value: Dexi-Aggregator-Test
- name: Cron-Interval
value: 10-minute
- name: Cron-Tag-Action
value: Cron-Minute-Tickname: Name of the processfile: Relative path to the main file to deployprerun: Relative path to a script that gets executed before the main filescheduler: ID of the schedulermodule: ID of the moduletags: List of tags to spawn the process withresetModules: If true, all modules except the standard ao library will be unloaded before your code is eval'ed (default: true)directory: If true, theaoform.directorypackage will be enabled. This returns a table with process names as the keys, and process ids as the values. (default: false)
MIT License - see LICENSE file for details.
Originally developed by AF (Autonomous Finance).