
# Internal notes

These are internal notes for this project, intended only for the internal use by Lucify.

## Update data

Run at `lucify-refugees` project root
```
src/scripts/download-unhcr-data.sh
./prepare.sh
```

Update dates in refugee-constants and values for soccer-fields.

Test that everything works
```
gulp
```

Then push to repository, and update npm package
```shell
npm version patch
git push --follow-tags
npm publish
```

## Deploying lucify-refugees locally

Run the following commands in the `lucify-refugees` project root:

### Development

```shell
LUCIFY_ENV=development AWS_PROFILE=lucify-protected FLOW_TOKEN=$FLOW_TOKEN_MAIN npm run-script deploy
```

### Production

First, assume the admin role. Then run the following command:
```shell
LUCIFY_ENV=production FLOW_TOKEN=$FLOW_TOKEN_MAIN npm run-script deploy
```

Once deployed, check that embeds work. Note that it can take up to 10 minutes for the visualisation to update in CDN.

Add internal notes with deployment instructions
Add internal notes with deployment instructions
