Skip to content

www.data.gov

Aaron D Borden edited this page Nov 27, 2019 · 10 revisions

www.data.gov (a.k.a WordPress) is the front page of Data.gov. It contains content featuring federal datasets by topic and an Open Data blog, among other things. The audience is Open Data users in the public and in government.

Environments

Instance URL
Production www.data.gov
Staging wordpress-datagov.dev-ocsit.bsp.gsa.gov
ci wordpress.ci.datagov.us

Common tasks

Database dump

Occasionally we need data for development. These commands are run from one of the wordpress-web hosts.

First, set the database credentials from the application in your shell.

$ source /var/www/datagov/current/.env

Then, create a compressed archive.

$ mysqldump -h $DB_HOST -u $DB_USER -p $DB_NAME | gzip > $(date +%Y-%m-%d)-staging-wordpress.sql.gz

Supply the content of $DB_PASSWORD when prompted. You can use scp to retrieve the file.

Clone this wiki locally