Create publiuc/source.tar.gz from current branch.
Also, give slow starters some more time.
This commit is contained in:
parent
36e6c9f68e
commit
521aa83b0c
1 changed files with 3 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ function init_public
|
||||||
bundle exec thin \
|
bundle exec thin \
|
||||||
-d --pid log/thin.pid --address localhost --port $THIN_PORT \
|
-d --pid log/thin.pid --address localhost --port $THIN_PORT \
|
||||||
start
|
start
|
||||||
for ((i = 0; i < 20; i += 1)) do
|
for ((i = 0; i < 30; i += 1)) do
|
||||||
sleep 2
|
sleep 2
|
||||||
wget -q -O tmp/server.html http://localhost:$THIN_PORT && \
|
wget -q -O tmp/server.html http://localhost:$THIN_PORT && \
|
||||||
rm tmp/server.html && break
|
rm tmp/server.html && break
|
||||||
|
|
@ -76,7 +76,8 @@ fi
|
||||||
|
|
||||||
# Force AGPL
|
# Force AGPL
|
||||||
if [ -w public -a ! -e public/source.tar.gz ]; then
|
if [ -w public -a ! -e public/source.tar.gz ]; then
|
||||||
tar czf public/source.tar.gz `git ls-tree -r master | awk '{print $4}'`
|
branch=$( git branch | awk '/^*/ {print $2}')
|
||||||
|
tar czf public/source.tar.gz `git ls-tree -r $branch | awk '{print $4}'`
|
||||||
fi
|
fi
|
||||||
if [ ! -e public/source.tar.gz ]; then
|
if [ ! -e public/source.tar.gz ]; then
|
||||||
echo "Error: Can't find, or even create, public/source.tar.gz. Exiting" >&2
|
echo "Error: Can't find, or even create, public/source.tar.gz. Exiting" >&2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue