Skip to content

bracketcoder/baust-fresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BAUST

Overview

BAUST is an AI agent application built with Remix and React, offering a modern web interface for AI interactions.

Deployment Guide for Ubuntu with Docker

Prerequisites

  • Ubuntu 20.04 LTS or newer
  • Git
  • Docker and Docker Compose (automatically installed by the deployment script if not present)

Quick Deployment

  1. Clone the repository:
git clone https://github.com/mdsharansifat/baust.git
cd baust
  1. Run the deployment script:
chmod +x deploy-ubuntu-docker.sh
./deploy-ubuntu-docker.sh

The script will:

  • Install Docker if not already installed
  • Create necessary environment files
  • Build the Docker image
  • Run the container
  • Configure Nginx as a reverse proxy (if Nginx is installed)

Manual Deployment Steps

If you prefer to deploy manually:

  1. Install Docker:
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER
  1. Deploy the application:
# Copy environment file
cp .env.production .env

# Build Docker image
docker build -t baust:latest --target bolt-ai-production .

# Run Docker container
docker run -d --name baust-container -p 5173:5173 --restart unless-stopped --env-file .env baust:latest

Nginx Configuration (Optional)

To set up Nginx as a reverse proxy:

  1. Install Nginx:
sudo apt install -y nginx
  1. Create Nginx configuration:
sudo nano /etc/nginx/sites-available/baust
  1. Add this configuration:
server {
    listen 80;
    server_name your-domain.com;

    location / {
        proxy_pass http://localhost:5173;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}
  1. Enable the site:
sudo ln -s /etc/nginx/sites-available/baust /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx

SSL Certificate (Optional)

To add HTTPS with Let's Encrypt:

sudo apt install -y certbot python3-certbot-nginx
sudo certbot --nginx -d your-domain.com

Maintenance

  • View container logs: docker logs baust-container
  • Restart the container: docker restart baust-container
  • Update the application:
git pull
docker build -t baust:latest --target bolt-ai-production .
docker stop baust-container
docker rm baust-container
docker run -d --name baust-container -p 5173:5173 --restart unless-stopped --env-file .env baust:latest

Development

To run the app in development mode:

# Build development image
docker build -t baust:development --target bolt-ai-development .

# Run development container
docker run -it -p 5173:5173 -v $(pwd):/app --env-file .env baust:development

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published