Documentation menu

Examples

Abotlogixfile.json examples

Minimal recipe shapes that use only documented public fields and safe placeholder credentials.

Minimal PHP project

This project needs one PHP service. It omits optional setup_commands, tunnel, delay_after_start_ms, and init_scripts because the project does not need them.

Abotlogixfile.json
{
  "project_name": "My PHP App",
  "services": [
    {
      "name": "php_server",
      "command": [
        "php",
        "-S",
        "0.0.0.0:8000",
        "-t",
        "."
      ]
    }
  ]
}

PHP and MariaDB with an optional named tunnel

This example places MariaDB before PHP, uses a fixed pause for the database service, and supplies an SQL file through the supported MariaDB initialization path. It omits tool_id because the first command item already names each tool.

Abotlogixfile.json
{
  "project_name": "My Custom PHP App",
  "tunnel": {
    "enabled": true,
    "domain": "app.example.com",
    "token": "YOUR_CLOUDFLARE_TUNNEL_TOKEN"
  },
  "services": [
    {
      "name": "mariadb_server",
      "command": [
        "mariadbd",
        "--skip-grant-tables"
      ],
      "delay_after_start_ms": 3000,
      "init_scripts": [
        "setup_database.sql"
      ]
    },
    {
      "name": "php_server",
      "command": [
        "php",
        "-S",
        "0.0.0.0:8000",
        "-t",
        "."
      ]
    }
  ]
}

Multi-port and environment project

This example shows rich multi-port declarations and project-wide environment variables with path placeholders. Remember that ports is optional and can be tailored to the endpoints you want the VPServ UI to highlight.

Abotlogixfile.json with rich ports & environment
{
  "project_name": "Fullstack Node & AI Service",
  "app_url": "http://127.0.0.1:3000",
  "ports": [
    {
      "name": "frontend",
      "port": 3000,
      "protocol": "http"
    },
    {
      "name": "api",
      "port": 8080,
      "protocol": "http"
    }
  ],
  "environment": {
    "NODE_ENV": "production",
    "PORT": "3000",
    "API_URL": "http://127.0.0.1:8080",
    "STORAGE_DIR": "{project}/data"
  },
  "setup_commands": [
    ["npm", "install"]
  ],
  "services": [
    {
      "name": "api_server",
      "command": ["node", "server.js"]
    },
    {
      "name": "web_frontend",
      "command": ["npm", "run", "start"]
    }
  ]
}

Optional setup command

Add setup_commands only when the project needs one-time preparation before its services begin. Every command is an array; the executable is first and every argument is separate.

A complete project with optional preparation
{
  "project_name": "My Python App",
  "setup_commands": [
    [
      "python3.13",
      "-m",
      "pip",
      "install",
      "-r",
      "{home}/requirements.txt"
    ]
  ],
  "services": [
    {
      "name": "application_server",
      "command": [
        "python3.13",
        "{home}/app.py"
      ]
    }
  ]
}
CorrectIncorrect
["python3.13", "-m", "pip", "install"]["python3.13 -m pip install"]
The service process lives in servicesA long-running server is placed in setup_commands

Keep manifests minimal

  • Use project_name when a project needs a readable recipe name; otherwise VPServ uses its supplied project title.
  • Omit ports when you do not need multi-port mapping in the UI; ports is completely optional.
  • Omit environment when standard system environment variables are sufficient.
  • Omit setup_commands when there is no preparation step.
  • Omit delay_after_start_ms when no fixed pause is needed.
  • Omit init_scripts when the service does not need existing MariaDB .sql files.
  • Omit tunnel for a local-only project.