/w3c-website-frontend

Frontend website for w3.org

Primary LanguagePHP

W3C frontend website

Symfony frontend website for w3.org

Reporting issues

Please report any issues to the w3c-website repo.

Getting started

This document is a summary of what you need to know when working on this project. Please also read the more detailed project documentation

In this document

Site URLs (TBC)

Production

Live:

Beta:

Staging

Development

Access to https://www-dev.w3.org is restricted by IP.

Local

Deployment (TBC)

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

SSH access

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>

Installation

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.

Requirements

Clone the repository

git clone git@github.com:w3c/website-frontend.git

Run composer install

Configuration

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.

Running application locally

You can run the frontend application locally at http://localhost:8000/ by running the command:

symfony server:start

Built with