Development

CI_ENVIRONMENT = development
app.baseURL = 'https://localhost:8080/'

Gitpod Environment

Got to https://gitpod.io/#https://github.com/joejcollins/captain-magenta.

Docker Environment

Using a Docker container which maps to files on the host.

      {
          "name": "Listen for XDebug",
          "type": "php",
          "request": "launch",
          "port": 9000,
          "pathMappings": {
              "/var/www/html": "${workspaceFolder}/src"
          },
          "ignore": [
              "**/vendor/**/*.php"
          ],
          "xdebugSettings": {
              "max_data": 65535,
              "show_hidden": 1,
              "max_children": 100,
              "max_depth": 5
          }
      },

WSL Ubuntu 20.04 Environment

Using the WSL Linux file system and not synchronizing or sharing files with the host.

{
    "name": "Listen for WSL XDebug",
    "type": "php",
    "request": "launch",
    "port": 9009,
    "pathMappings": {
        "${workspaceFolder}/src": "${workspaceFolder}/src"
    },
    "ignore": [
        "**/vendor/**/*.php"
    ],
    "xdebugSettings": {
        "max_data": 65535,
        "show_hidden": 1,
        "max_children": 100,
        "max_depth": 5
    }
},

PHP Built in Development Server

Codeigniter can use the built in PHP server started like this sudo php spark serve --host=0.0.0.0 --port=8080.