Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

useverto/deploy

Repository files navigation

Verto logo (light version)

Verto Deploy

CLI tool for deploying Sapper exported applications on Arweave

Build CI Check formatting

About

This is a CLI tool for deploying Svelte applications written in Sapper on Arweave

This project needs help. It does work, but it probably needs some adjustments to work with any Sapper app. It is only tested with useverto/verto.

Installing

yarn add global @verto/deploy or npm i -g @verto/deploy

First steps

  • Before deploying, make sure that you run sapper export --entry "your routes with spaces between them"
  • Make sure you are deploying the __sapper__/export directory. It won't work with anything else.

Usage

vdeploy help

Shows the help menu

Deploy a folder

vdeploy deploy --dir <Sapper project directory to deploy> --keyfile <path toArweave keyfile>

This deploys your Sapper project. What it does:

  • Fixes links and hrefs (so it works with the arweave transaction id subfolder)
  • Deploys all your files
  • Creates a path manifest that links all files together and adds routes

Get balance

vdeploy balance --keyfile <path toArweave keyfile>

Helper command: returns your arweave balance

Get transaction status

vdeploy status <id>

Helper command: returns the status of the given transaction ID

Why does this library exist?

The arweave-deploy CLI does not work with Sapper applications. The routes are invalid and the links/hrefs also don't work. verto-deploy was built specifically for deploying Sapper apps.

About

🛠️ CLI tool for deploying Sapper exported applications on Arweave

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published