https://github.com/usagov/vote-gov-drupal
This repository contains the application and files to run the current vote.gov website.
https://github.com/usagov/vote-gov-drupal
drupal
Last synced: 12 months ago
JSON representation
This repository contains the application and files to run the current vote.gov website.
- Host: GitHub
- URL: https://github.com/usagov/vote-gov-drupal
- Owner: usagov
- Created: 2022-11-15T17:24:47.000Z (over 3 years ago)
- Default Branch: dev
- Last Pushed: 2025-04-09T10:57:23.000Z (12 months ago)
- Last Synced: 2025-04-09T11:46:12.817Z (12 months ago)
- Topics: drupal
- Language: PHP
- Homepage: https://vote.gov
- Size: 14.9 MB
- Stars: 8
- Watchers: 6
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
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 |