Skip to content

Instantly share code, notes, and snippets.

Created March 26, 2013 21:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5249546 to your computer and use it in GitHub Desktop.
Save anonymous/5249546 to your computer and use it in GitHub Desktop.
Bash script to redeploy a meteor.js application.
#!/bin/bash
NAME=$1
echo "Redeploying ${NAME}"
tar xvf "${NAME}.tar.gz"
rm -rf "${NAME}_old"
mv -v $NAME "${NAME}_old"
rm -rf $NAME
mv -v bundle $NAME
cd "${NAME}/server"
rm -rf node_modules/fibers
npm install fibers
cd ..
echo "DONE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment