mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-18 03:41:52 +03:00
27 lines
651 B
Bash
Executable File
27 lines
651 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
VERSION=dev
|
|
# S3_ROOT=s3://mjk_asdf/abstreet
|
|
S3_ROOT=s3://abstreet
|
|
|
|
set -e
|
|
|
|
cd web;
|
|
# To quickly deploy just one app, modify APPS in the Makefile
|
|
make release
|
|
aws s3 sync build/dist/ $S3_ROOT/$VERSION/
|
|
|
|
# Set the content type for .wasm files, to speed up how browsers load them
|
|
aws s3 cp \
|
|
$S3_ROOT/$VERSION \
|
|
$S3_ROOT/$VERSION \
|
|
--exclude '*' \
|
|
--include '*.wasm' \
|
|
--no-guess-mime-type \
|
|
--content-type="application/wasm" \
|
|
--metadata-directive="REPLACE" \
|
|
--recursive
|
|
|
|
echo "Have the appropriate amount of fun: http://abstreet.s3-website.us-east-2.amazonaws.com/$VERSION"
|