Skip to content

kennethklee/xpb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xpocketbase

Plugin orientated custom pocketbase builder, inspired by xcaddy.

This is a working example of building pocketbase with plugin support on the server.

Requirements

  • Golang

Install

Install from source:

go install github.com/kennethklee/xpb/xpocketbase@latest

Usage

xpocketbase build <version> will build a pocketbase binary.

# Build a specific version of pocketbase
xpocketbase build master
xpocketbase build v0.8.0

# Build the examples/base pocketbase
xpocketbase build latest \
    --with github.com/kennethklee/xpb/plugins/static \
    --with github.com/kennethklee/xpb/plugins/migrations-js \
    --with github.com/kennethklee/xpb/plugins/timeouts

# Build with plugin module in current directory
xpocketbase build latest \
    --with my-module=.

# Specific version
xpocketbase build latest \
    --with github.com/kennethklee/xpb/plugins/static@v1.0.0

# Replaces contents of module with contents elsewhere
xpocketbase build latest \
    --with github.com/kennethklee/xpb/plugins/static@v1.0.0=../plugins/static

# go build flags
xpocketbase build latest \
    --with github.com/kennethklee/xpb/plugins/static@v1.0.0 \
    -- -ldflags "-s -w"

About

Plugin orientated pocketbase build

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages