Skip to content

Instantly share code, notes, and snippets.

@djds23
Created July 31, 2016 17:57
Show Gist options
  • Select an option

  • Save djds23/637bb3343162147289b9dda54d88ab27 to your computer and use it in GitHub Desktop.

Select an option

Save djds23/637bb3343162147289b9dda54d88ab27 to your computer and use it in GitHub Desktop.
React build static file
echo "Pulling branch master"
git pull origin master
echo "Building static site"
node ./scripts/build.js
echo "Moving build to /srv/"
cp -R ./build /srv/
echo "Kicking over NGINX"
nginx -s reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment