Files
zulip/tools/build-local-server-tarball
Tim Abbott 7f0eb71d9b Don't include local_settings.py in local server tarballs.
(imported from commit 5d893375de87f878d270bf8dc3270c7fcd3b25af)
2013-11-05 17:06:33 -05:00

37 lines
573 B
Bash
Executable File

#!/bin/sh -ex
GITID=$(git rev-parse HEAD)
TMPDIR=$(mktemp -d)
DIR=$TMPDIR/zulip-server/
TARBALL=$TMPDIR/zulip-server.tar.gz
git checkout-index -f -a --prefix $DIR
cd $DIR
# update-prod-static generates the prod-static directory.
# See COLLECTSTATIC in settings.py
./tools/update-prod-static
xargs rm -r <<EOF
assets
bots
static
tools
zilencer
.gitignore
templates/.gitignore
puppet/zulip_internal
zproject/local_settings.py
EOF
echo $GITID > version_id
mv update-prod-static.log ..
cd ..
tar -czf $TARBALL zulip-server
rm -r zulip-server
echo "Generated $TARBALL"