Fetching data¶
Prerequisites¶
The following steps must be completed before you can pull data from an evironment:
- Register for a Platform.sh account using your work email
- On the
#ds-etnaor#ds-etna-devSlack channels, request for someone to add you to the Etna project - Once you have access, generate an API token for your account (The name Local CLI will do nicely), and add it your local
.envfile asPLATFORMSH_CLI_TOKEN
Developers from external agencies may not be able to register for a platform.sh account. In this scenario, ask a developer from The National Archives to share their API key.
NOTE: When fetching data:
- any Django users you created locally before running the command will no longer exist
- a superuser whose credentials are defined in
docker-compose.ymlwill be created
Download from development¶
Set up the AWS CLI as described in: https://national-archives.atlassian.net/wiki/spaces/TW/pages/775028742/Local+development#AWS-CLI-setup
# Pull all data and media from the development server
docker compose exec dev pull