Symfony frontend website for w3.org
Please report any issues to the w3c-website repo.
This document is a summary of what you need to know when working on this project. Please also read the more detailed project documentation
Live:
- https://www.w3.org
- https://www.w3.org/_build_summary.json (very brief summary of latest deployment)
Beta:
Access to https://www-dev.w3.org is restricted by IP.
The project uses Deployer to perform deployment. For full deployment details/options view docs/deployment
Please note this project uses a local instance of Deployer (installed via Composer), as opposed to a global version of Deployer. This is so we can make use of other Composer packages in deployment tasks reliably (otherwise there can be clashes between global and local version of the same packages).
To run deployments please use:
vendor/bin/dep deploy <environment>
To deploy a specific branch use
vendor/bin/dep deploy <environment> --branch=<branch_name>
E.g.
vendor/bin/dep deploy development --branch=develop
To connect to the server directly at the correct path for an environments current release, run the following from the root of the project
vendor/bin/dep ssh <environment>
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
More on the Git workflow for this project.
- PHP 7.4
- Composer
- Symfony CLI
git clone git@github.com:w3c/website-frontend.git
Run composer install
Create a local environment file and populate the required variables (see .env.local.dist
):
cp .env.local.dist .env.local
You can talk to another developer about what these values should contain.
You can run the frontend application locally at http://localhost:8000/ by running the command:
symfony server:start
- Symfony
- Strata Frontend
- W3C Design System (used as a Symfony template bundle)