summaryrefslogtreecommitdiff
path: root/README.museum.md
blob: 37d9513d154750b572c67ccedfb6bcbd70841e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# The Last Museum

Project for KW Berlin and other places.

## Updating the site

### Linking to assets

- Local: ./data_store/media/last-museum/[artist]/[filename]
- Embed: /static/media/last-museum/[artist]/[filename]

### Videos

- size: cover
- units: pixels

For underlying videos:

- units: video

### Pages

- Custom components: `frontend/site/museum/views/`
- Include these with routes: `frontend/site/museum/app/index.js`

### Adding a new artist

- Update `constants.js` with the artist name, bio, etc
- Font size might change for CSS: `.page-artists .artist-big-name`
- Upload their cursors
- Update `frontend/site/projects/museum/views/home.js`
  - the line `history.push("/thelastmuseum/...")` should point at the new start page

## Deployment

### Building the site

```
# Building the Last Museum site (development)
yarn build:museum:dev

# Deploying the Last Museum site (production)
yarn build:museum:production
rsync -rlptuvz ./data_store/exports/thelastmuseum/ lens@garden:swimmer/data_store/exports/thelastmuseum/
rsync -rlptuvz /Users/user/projects/swimmer/data_store/media/last-museum/ lens@garden:swimmer/data_store/exports/thelastmuseum/static/media/last-museum
```

### Packaging a build

```
# Zipping the site on the server
cd /home/lens/swimmer/data_store/exports
zip -r ./thelastmuseum-YYYYMMDD.zip ./thelastmuseum
```