Spry LogoSpry Docs

Common Workflows

Common Workflows in Spry.

Development Workflow

Follow these steps to set up and run your development environment:

Initialize project

./spry.ts init

Initializes the project structure and dependencies.

Start development server with live reload

./spry.ts spc --fs dev-src.auto --destroy-first --conf sqlpage/sqlpage.json --watch --with-sqlpage

Launches a development server with automatic file watching and live reload.

List and execute tasks as needed

./spry.ts task ls
./spry.ts task prepare-db

Provides task management capabilities for database preparation and other setup tasks.


Deployment Workflow

Deploy your application to production with these steps:

Clean development artifacts

rm -rf dev-src.auto

Removes temporary development files.

Package and deploy to database

./spry.ts spc --package --conf sqlpage/sqlpage.json | sqlite3 production.db

Packages the application and deploys it to the production database.

Start SQLPage server

sqlpage

Starts the SQLPage server to serve the application.


Task Management Workflow

Manage and execute tasks efficiently:

List available tasks

./spry.ts task ls

Displays all available tasks in the project.

Execute specific task

./spry.ts task my-task --verbose rich

Runs a specific task with detailed verbose output.

Execute all tasks in order

./spry.ts runbook --summarize

Executes all tasks sequentially with a summary of results.

How is this guide?

Last updated on

On this page