snowballtools-base-old/packages/deployer
2024-02-27 10:22:41 +05:30
..
records Update readme with steps for new deployment 2024-02-27 10:11:12 +05:30
config.yml Add script and records for deploying frontend app 2024-02-27 09:46:00 +05:30
deploy-frontend.sh Add script and records for deploying frontend app 2024-02-27 09:46:00 +05:30
package.json Add script and records for deploying frontend app 2024-02-27 09:46:00 +05:30
README.md Add troubleshooting section 2024-02-27 10:22:41 +05:30

snowball-deployer

  • Install dependencies

    yarn
    
  • Replace variables in the following files

    • records/application-deployment-request.yml
      • <CURRENT_DATE_TIME>: Replace with current time which can be generated by command date -u
        # Example
        record:
          ...
          meta:
            note: Added by Snowball @ Friday 23 February 2024 06:35:50 AM UTC
            ...
        
  • Run script

    ./deploy-frontend.sh
    
  • For new deployments

Troubleshoot

  • Check balances
    # Account balace
    yarn laconic cns account get
    
    # Bond balance
    yarn laconic cns bond get --id 8fcf44b2f326b4b63ac57547777f1c78b7d494e5966e508f09001af53cb440ac
    
    • Commmand to refill bond incase balance is less
      yarn laconic cns bond refill --id 8fcf44b2f326b4b63ac57547777f1c78b7d494e5966e508f09001af53cb440ac --type aphoton --quantity 10000000