diff --git a/.gitignore b/.gitignore index f19db2aa3..7576d6360 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ dist .installed install.sh run.sh +build.sh package-lock.json diff --git a/build.sh b/build.sh index c4c1a203e..00704efd2 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ set -e -cd /Users/despiegk/codesync/github/threefoldfoundation/www_examplesite +cd /Users/despiegk/codewww/github/threefoldfoundation/www_examplesite #need to ignore errors for getting nvm not sure why set +e @@ -12,5 +12,16 @@ nvm use --lts export PATH=/Users/despiegk/.publisher/versions/node/v15.8.0/bin:$PATH +set +e gridsome build +set -e + +mkdir -p /Users/despiegk/.publisher/publish/www_examplesite +rsync -ra --delete /Users/despiegk/codewww/github/threefoldfoundation/www_examplesite/dist/ /Users/despiegk/.publisher/publish/www_examplesite/ + +cd /Users/despiegk/codewww/github/threefoldfoundation/www_examplesite/dist + +echo go to http://localhost:9999/ + python3 -m http.server 9999 +