From 9f21b9383dd17b9f54110e91d1d1458628819a40 Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Tue, 5 Oct 2010 21:47:17 +0200 Subject: [PATCH] Server start, but fails on missing .git dirs (!) --- pkg/fedora/.bundle/config | 5 +++++ pkg/fedora/source-fix.patch | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 pkg/fedora/.bundle/config create mode 100644 pkg/fedora/source-fix.patch diff --git a/pkg/fedora/.bundle/config b/pkg/fedora/.bundle/config new file mode 100644 index 000000000..1c3e2cedf --- /dev/null +++ b/pkg/fedora/.bundle/config @@ -0,0 +1,5 @@ +--- +BUNDLE_FROZEN: "1" +BUNDLE_DISABLE_SHARED_GEMS: "1" +BUNDLE_WITHOUT: test:rdoc +BUNDLE_PATH: vendor/bundle diff --git a/pkg/fedora/source-fix.patch b/pkg/fedora/source-fix.patch new file mode 100644 index 000000000..55dffae43 --- /dev/null +++ b/pkg/fedora/source-fix.patch @@ -0,0 +1,21 @@ +diff --git a/script/server b/script/server +index da43895..c5357a3 100755 +--- a/script/server ++++ b/script/server +@@ -7,9 +7,13 @@ then + echo "Mongod not started" + else + mkdir -p -v log/thin/ +- #force AGPL +- tar cf ../_source.tar -X .gitignore * +- mv ../_source.tar public/source.tar ++ #force AGPL ++ test -w public -a ! -e public/source.tar && ++ tar cf public/source.tar --exclude='source.tar' -X .gitignore * ++ test -e public/source.tar || { ++ echo "Can't find, or even create, public/source.tar. Giving up" ++ exit 2 ++ } + bundle exec ruby ./script/websocket_server.rb& + bundle exec thin start $@ + fi