This developer container quickly spins up a VSCode development environment for Phorge enabling:
- Intellisense
- Debugging
- Pre-configured major Phorge features including:
- Developer mode / dark console
- Notifications (Aphlict)
- Repository hosting (SSH + HTTP)
- Remote - Containers VSCode Extension
- Recent version of Docker (see extension documentation for exact versions)
- Clone this repository.
- Open the cloned repository folder in VSCode.
- Press
F1
thenRemote-Containers: Reopen in Container
. - Add
127.0.0.1 phorge.localhost
entry to your HOSTS file. - Browse to
http://phorge.localhost
in your browser.
You can customize some parts of the docker-compose.yml
file by creating a .env
file in .devcontainer
To get started, copy .devcontainer/.env.sample
and make appropriate edits
You can edit the following
PHORGE_WEB_PORT
- Defaults to port80
, set to something else if desiredPHORGE_SSH_PORT
- The SSH port that phorge repos will be available on. Defaults to22280
PHORGE_BASE_URI
- The entry should match your hosts file. Defaults tohttp://phorge.localhost
- However, if you updatePHORGE_WEB_PORT
to something other than80
you will need to update this URI to match. e.g. if port is8020
make this URIhttp://phorge.localhost:8020
To verify this is working, click on the "Ports" tab when the terminal is open in VSCode to see what ports the services are running on. Alternatively, you can run docker ps
from the cli to see the port mappings.
- Go to the debug tab of VSCode.
- Start the
Listen for Xdebug
configuration. - Set one or more breakpoints.
- Navigate to page that triggers the breakpoint(s).