Skip to main content

Source Code Deployment

Tip
  • Operating System: Ubuntu 20.04 LTS
  • Server Requirements: Minimum 2 cores 4GB RAM, Recommended 4 cores 8GB RAM

Dependencies

Download

# Download source code
git clone https://github.com/bytedesk/bytedesk.git
cd bytedesk
# Install dependencies
yarn install
# Start development
yarn dev
# Build for production
yarn build

Configuration

# Modify configuration files
# Modify database configuration
vim config/application.yml
# Modify redis configuration
vim config/redis.yml

Start

# Start server
./startup.sh
# View logs
tail -f logs/bytedesk.log

Stop

# Stop server
./shutdown.sh

Upgrade

# Pull latest code
git pull
# Build
yarn build
# Stop server
./shutdown.sh
# Start server
./startup.sh