Permalink
Browse files

doc: Link to live sample in README

  • Loading branch information...
MikeMitterer committed Jun 27, 2018
1 parent 3a9c29e commit 9b3cb91a7d6967f979ec591f579785da0c9c0061
Showing with 6 additions and 5 deletions.
  1. +1 −2 README.md
  2. +5 −3 deploy-sample.sh
@@ -18,8 +18,7 @@ Then, run `pub get` to download and link in the package.

## Sample

Live: [samples.m4d.router.mikemitterer.at](http://samples.m4d.router.mikemitterer.at.s3-website-eu-west-1.amazonaws.com/)
http://samples.mikemitterer.at.s3-website-eu-west-1.amazonaws.com/m4d_router/
Live: [samples.m4d.router.mikemitterer.at](http://samples.m4d.router.mikemitterer.at.s3-website-eu-west-1.amazonaws.com/)
Source - check it out on [GitHub](https://github.com/MikeMitterer/m4d_router/tree/route_version/example/browser)

```dart
@@ -99,17 +99,19 @@ publishSamples() {
local S3BUCKET=$(cat "${SAMPLE}/.s3" | sed -e "s/^#.*$//g" -e "/^$/d" | head -n 1)

cd ${SAMPLE}
#pub update

# Update pub
pub update

# Set current date in index.html
sed -i.bak -e "s#<span class=\"pubdate\">[^<]*</span>#<span class=\"pubdate\">$(date +"%Y-%m-%d / %H:%M:%S")</span>#g" web/index.html

# Dart build
#pub run build_runner build --output web:deploy
pub run build_runner build --output web:deploy

# Sync to Amazon (root dir: browser)
# Uses 'Bucket-all-samples-for-mikemitterer.at' policy on AWS
#aws s3 sync --delete deploy/ s3://${S3BUCKET}
aws s3 sync --delete deploy/ s3://${S3BUCKET}

done
}

0 comments on commit 9b3cb91

Please sign in to comment.