Website

Check-in [fd1d1410be]
Login
Overview
Comment:Add script to deploy project to s3.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fd1d1410be7e50c89cef227dc734103fe7a6c10e5cf01bb1b641882dc579be0b
User & Date: robin.hansen on 2020-11-10 05:47:55
Other Links: manifest | tags
Context
2020-11-12
05:08
Add build step to frontpage piece of part check-in: 95afcaaade user: robin.hansen tags: trunk
2020-11-10
05:47
Add script to deploy project to s3. check-in: fd1d1410be user: robin.hansen tags: trunk
2020-11-09
05:49
Began work on landing page content. check-in: d1bedbb50f user: robin.hansen tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added deploy.sh version [c37d2db9c4].































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
#!/usr/bin/env bash
set -e

rm -r dist || true
mkdir dist

# Build playground
pushd playground

npm ci
npm run build

popd

# Build frontpage
echo "copying frontpage/* into dist"
cp frontpage/* dist

# Upload to s3
pushd dist

aws s3 cp ./index.html s3://play-website \
    --cache-control must-revalidate \

aws s3 cp ./playground.html s3://play-website \
    --cache-control must-revalidate \

aws s3 cp ./playground.*.js s3://play-website \
    --cache-control immutable

popd

Modified playground/package.json from [8c57dc3c7c] to [efc667e5a0].

1
2
3
4
5
6
7

8
9
10
11
12
13
14
{
  "name": "playground",
  "version": "1.0.0",
  "private": true,
  "description": "A playground for the Play programming language",
  "scripts": {
    "start": "parcel src/playground.html",

    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Robin Heggelund Hansen",
  "license": "MIT",
  "devDependencies": {
    "@babel/polyfill": "^7.12.1",
    "elm": "^0.19.1-3",







>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "name": "playground",
  "version": "1.0.0",
  "private": true,
  "description": "A playground for the Play programming language",
  "scripts": {
    "start": "parcel src/playground.html",
    "build": "parcel build src/playground.html -d ../dist --no-source-maps",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Robin Heggelund Hansen",
  "license": "MIT",
  "devDependencies": {
    "@babel/polyfill": "^7.12.1",
    "elm": "^0.19.1-3",