Skip to content

This repository contains the application and files to run the current vote.gov website.

Notifications You must be signed in to change notification settings

usagov/vote-gov-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

662771a · Feb 12, 2025
Aug 16, 2024
Feb 6, 2025
Apr 30, 2024
Aug 2, 2023
Jan 30, 2025
Jan 16, 2025
Jan 6, 2025
Feb 24, 2023
Feb 3, 2025
Feb 6, 2025
Feb 7, 2025
Feb 15, 2023
Nov 4, 2022
May 3, 2024
Jul 27, 2024
Aug 16, 2024
Jan 16, 2024
Jul 5, 2023
Jan 7, 2025
Feb 10, 2025
Nov 15, 2024

Repository files navigation

Vote.gov Drupal 10 installation

Requirements

Lando: https://docs.lando.dev/

NOTE: Lando requires a specific version of docker which is loaded as part of the lando package. Do not update docker separate from lando. When you update lando docker will be updated as well.

Developer documentation

Reference the developer documentation in to docs directory.

Getting started

Initializing the site

lando start
lando composer install
lando set

Importing Database

lando db-import <filename>
lando retune

You can get the local site urls using this command.

lando info

Build the theme compiled files

See the README file located in the votegov custom theme for a quick start.

Drush commands

Clearing cache

lando drush cr

Log in as Superuser locally

lando drush uli

Managing site configuration

Import configuration from /config/

lando drush cim

Export configuration to /config/

lando drush cex

Lando commands

Command Use case
lando info Get info on a lando container include url links.
lando start Start the container
lando stop Stop the container
lando poweroff Turn off lando and all containers
lando rebuild Rebuild the container (retains your db, use when there are updates to .lando.yml)
lando destroy Destroys container and your db (when all else fails)

Custom Lando commands

Command Use case
lando retune Runs a list of commands to sync changes when pulling commits or checking out different branches
lando set Copies development versions of services.yml and settings.php to sites directory to initialize db connection
lando static Manually recompiles static site and assets