diff --git a/s3-deploy.sh b/s3-deploy.sh index f062c25e2f..3f63e6c65e 100755 --- a/s3-deploy.sh +++ b/s3-deploy.sh @@ -9,7 +9,7 @@ build_assets() { } echo "> Build artifact." -build_assets +#build_assets # Calculate output directory. echo "> Calculate artifact SHA." @@ -34,8 +34,8 @@ echo "> Modify asset paths, etc. in index.html." pushd $output_dir > /dev/null # /assets/output/main.built.js -> /assets/main.built.js sed -i "s/assets\/output/assets/g" index.html -# /assets/main.built.js -> /assets/${checksum}/main.built.js -sed -i "s/assets/assets\/${checksum}/g" index.html +# /assets/main.built.js -> //cdn.junglehorse.com/assets/${checksum}/main.built.js +sed -i "s/\/assets/\/\/cdn.junglehorse.com\/assets\/${checksum}/g" index.html sed -i "s/asset_content_hash/${checksum}/g" index.html sed -i "s/DEVELOPMENT/production/g" index.html popd > /dev/null @@ -43,6 +43,7 @@ popd > /dev/null echo "> Upload to S3." aws s3 cp $output_dir s3://junglehorse-frontend/assets/${checksum} --recursive aws s3 cp $output_dir/index.html s3://junglehorse-frontend/index.html +aws s3 cp $output_dir/error.html s3://junglehorse-frontend/error.html popd > /dev/null echo "> Done." diff --git a/web/error.html b/web/error.html new file mode 100644 index 0000000000..69ca5c8c39 --- /dev/null +++ b/web/error.html @@ -0,0 +1,10 @@ + + + + Jungle Horse — Error + + +

Error

+

This thing doesn't exist.

+ +