Skip to main content

Project Structure

A well-organized project structure is crucial for efficient deployment. Below is a recommended project structure:

project-root/
├── .env # Environment variables file(server password)
├── backup/ # Backup .env && config.mjs directory
│ ├── .env # Backup .env
│ ├── config.mjs # Backup config.mjs
├── config/ # Deployment config directory
│ ├── config.mjs # config
├── logs/ # Deployment logs directory
│ ├── 2020-08-08/ # year-month-day logs directory
│ ├── wukong.log # log

Best Practices

  1. Use Environment Variables
    • Store sensitive information in .env files