start.sh 303 B

1234567891011121314
  1. #!/bin/bash
  2. #set -x
  3. echo $(date)
  4. WORKSPACE=$(cd $(dirname $0)/..; pwd)
  5. #echo "workspace:$WORKSPACE"
  6. cd $WORKSPACE
  7. #docker stop gitbook
  8. docker rm gitbook
  9. docker run -d --name usky-book -p 4001:4000 -v $(pwd):/srv/gitbook -v $(pwd)/.html:/srv/html fellah/gitbook
  10. docker logs -f --tail=100 gitbook