Installation¶
This guide covers installing Roselite on your system. Roselite consists of two main components: the CLI tool for bundling and publishing, and the gateway server for web access.
Prerequisites¶
Before installing Roselite, make sure you have:
- Rust 1.70+ with Cargo
- Git for cloning the repository
- Internet connection for Veilid network access
Install from Source¶
The recommended way to install Roselite is building from source:
1. Clone the Repository¶
2. Build Release Version¶
# Build both CLI and gateway
cargo build --release
# This creates binaries in target/release/:
# - roselite (CLI tool)
# - roselite-gateway (Gateway server)
3. Verify Installation¶
# Test CLI
./target/release/roselite --version
# Test gateway
./target/release/roselite-gateway --help
4. Add to PATH (Optional)¶
Development Installation¶
For development or contributing:
1. Clone and Setup¶
git clone https://github.com/jdbohrman/roselite.git
cd roselite
# Install in development mode
cargo build
2. Run Tests¶
3. Development Commands¶
# Run CLI directly
cargo run --bin roselite -- --help
# Run gateway directly
cargo run --bin roselite-gateway -- --help
# Check code
cargo check
cargo clippy
Docker Installation¶
For containerized deployment:
1. Build Docker Image¶
2. Run Gateway Container¶
# Run on port 8080
docker run -p 8080:8080 roselite-gateway --port 8080 --domain localhost:8080
# With volume for cache
docker run -p 8080:8080 -v ./cache:/app/cache roselite-gateway
Verification¶
After installation, verify everything works:
1. Check CLI Installation¶
roselite --version
# Should output version information
roselite --help
# Should show available commands
2. Check Gateway Installation¶
3. Test Basic Functionality¶
Troubleshooting¶
Common Issues¶
Build Errors
Issue: Compilation fails with dependency errors
Solution:
Network Issues
Issue: Can't connect to Veilid network
Solution:
Permission Errors
Issue: Permission denied when copying binaries
Solution:
Getting Help¶
If you encounter issues:
- Check the troubleshooting guide
- Search existing issues
- Create a new issue with:
- Your operating system
- Rust version (
rustc --version
) - Complete error message
- Steps to reproduce
Next Steps¶
Now that Roselite is installed:
- Quick Start Guide - Deploy your first site
- First Deployment - Complete tutorial with gateway
- CLI Reference - Detailed command documentation
Installation Complete
You're ready to start deploying static sites to the Veilid DHT! Continue with the Quick Start guide.