Skip to content

openworkers/openworkers-runner

Repository files navigation

OpenWorkers runner

OpenWorkers is a runtime for running javascript code in a serverless environment.

This runner manages instances of OpenWorkers Runtime.

Usage

Build

cargo build --release

Snapshot the runtime

cargo run --bin snapshot

Prepare the database

CREATE USER openworkers WITH PASSWORD 'password';
CREATE DATABASE openworkers WITH OWNER openworkers;

Create .env file

DATABASE_URL='postgres://openworkers:password@localhost:5432/openworkers'
NATS_SERVERS='nats://localhost:4222'

Run

export RUST_LOG=openworkers_runtime=debug,openworkers_runner=debug # Optional

cargo run

Install sqlx-cli (optional - only for development)

cargo install sqlx-cli --no-default-features --features rustls,postgres

Prepare the database

cargo sqlx prepare

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages