-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deploy to fly * fly.toml * add deploy to fly guude * copy config * auto format fly.toml * Update deploy-to-fly.md * Update deploy-to-fly.md * Update deploy-to-fly.md * Update README.md * add volume size tips * fix file name --------- Co-authored-by: Jaxcoder <[email protected]>
- Loading branch information
1 parent
8e408d9
commit fb005bc
Showing
5 changed files
with
73 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Deploy to Fly | ||
|
||
We use Fly.io to deploy the indexer. This guide will walk you through the process of setting up and deploying your own indexer on Fly.io. | ||
|
||
## Getting Started | ||
|
||
First, ensure you have `flyctl` installed by following the [official installation guide](https://fly.io/docs/hands-on/install-flyctl/). | ||
|
||
## Configuration | ||
|
||
Next, clone the repository and make necessary adjustments to the `fly.toml` file: | ||
|
||
1. Adjust `INDEXED_CHAINS` in the configuration to include the chains you want to index. Supported chains can be found in `src/config.ts`. | ||
2. The indexer defaults to using public RPCs. Due to their low rate limits, it's advisable to use private RPCs. Define your RPC URLs in environment variables formatted as `${CHAIN_NAME}_RPC_URL`, such as `OPTIMISM_RPC_URL` for Optimism. | ||
|
||
## Deployment | ||
|
||
After configuring, deploy your app with: | ||
|
||
fly launch --copy-config | ||
|
||
Monitor the deployment process and troubleshoot if necessary by running: | ||
|
||
fly logs | ||
|
||
Note that because of the amount of events Allo contracts emit, the first run might take hours. | ||
|
||
## Access Your Indexer | ||
|
||
Once it's live, Fly will provide a URL where you can access your indexer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters