Revision: 10501
http://sourceforge.net/p/languagetool/code/10501
Author: dnaber
Date: 2013-07-15 06:42:31 +0000 (Mon, 15 Jul 2013)
Log Message:
-----------
fix and make deployment script more robust; clean up after deployment
Modified Paths:
--------------
trunk/languagetool/languagetool-standalone/scripts/deploy-api-server.sh
Modified:
trunk/languagetool/languagetool-standalone/scripts/deploy-api-server.sh
===================================================================
--- trunk/languagetool/languagetool-standalone/scripts/deploy-api-server.sh
2013-07-14 16:59:16 UTC (rev 10500)
+++ trunk/languagetool/languagetool-standalone/scripts/deploy-api-server.sh
2013-07-15 06:42:31 UTC (rev 10501)
@@ -1,5 +1,12 @@
#!/bin/sh
+CURRENT_DIR=`pwd`
+CURRENT_BASE=`basename $CURRENT_DIR`
+if [ "$(basename $CURRENT_DIR)" != 'scripts' ]; then
+ echo "Error: Please start this script from inside the 'scripts' directory";
+ exit 1;
+fi
+
echo ""
echo "###"
echo "### Admin only - you will need the server password to deploy the code
###"
@@ -8,8 +15,8 @@
echo ""
sleep 1
-cd .. &&
+cd ../.. &&
mvn clean package -DskipTests &&
- cd - &&
+ cd languagetool-standalone &&
scp target/LanguageTool-[1-9].[0-9]*.zip [email protected]: &&
- ssh [email protected] "unzip -d /home/languagetool/api
~/LanguageTool-[1-9].[0-9]*.zip && cp -r
/home/languagetool/api/LanguageTool-[1-9].[0-9]*/* /home/languagetool/api/ &&
rm -rf /home/languagetool/api/LanguageTool-[1-9].[0-9]*/ && cd
/home/languagetool/ && ./restart-api-server.sh"
+ ssh [email protected] "unzip -d /home/languagetool/api
~/LanguageTool-[1-9].[0-9]*.zip && cp -r
/home/languagetool/api/LanguageTool-[1-9].[0-9]*/* /home/languagetool/api/ &&
rm -rf /home/languagetool/api/LanguageTool-[1-9].[0-9]*/ && cd
/home/languagetool/ && ./restart-api-server.sh && rm
~/LanguageTool-[1-9].[0-9]*.zip"
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits