Deployment

After thoroughly testing your handler code, it's time to deploy the instance to a production environment. Before proceeding with the deployment, ensure that you have the correct User ID and Project ID configured in the studio.yaml file.

name: cli-demo
description: a project to showcase cli working
startBlock: latest
userId: XXXXXXXX-XXXX-XXXX-XXXXXXXX-XXXXXXXX
projectId: XXXXXXXX-XXXX-XXXX-XXXXXXXX-XXXXXXXX
network: Ethereum
user: Jane-doe

You need to change these default values.


Obtaining User ID and Project ID

If you haven't already, you'll need to create a Blockflow account and obtain your User ID and Project ID. You can do this by visiting the Blockflow Console and following the provided instructions.

Once you have your User ID and Project ID, update the studio.yaml file with these values, ensuring that they are correctly specified.

name: cli-demo
description: a project to showcase cli working
startBlock: latest
userId: google-oauth2%7CXXXXXXXXXXXX52
projectId: 036c6252-XXXX-4abd-8a34-XXXXXXXd7b56
network: Ethereum
user: Vaibhav Dwivedi


Deploying the Instance

With the User ID and Project ID configured, you can deploy your instance using the following command:

blockflow instance-deploy

This command will initiate the deployment process, uploading your configuration and code to the Blockflow platform.


Monitoring the Deployment

After running the blockflow instance-deploy command, you can monitor the deployment status and progress through the Blockflow Console. Navigate to the "Instances" tab, where you'll find your recently deployed instance listed.

Click on your instance to access the detailed view, which provides information about the deployment status, number of invocations (indexing events), and other relevant metrics.


Ongoing Monitoring and Management

After the initial deployment, you can continue to monitor and manage your subgraph instance through the Blockflow Console.

The console provides tools and dashboards for tracking performance, analysing logs, and making configuration changes as needed.

Last updated