From d7069b5a2e7859ab14c5a909d5e5fc6bc84b80cb Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 3 Jan 2013 07:41:53 +0000 Subject: Improve app hosting management app, restructure UI and refactor REST services and data model to use an SQL database. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1428193 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/hosting/server/ssl-start | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'sca-cpp/trunk/hosting/server/ssl-start') diff --git a/sca-cpp/trunk/hosting/server/ssl-start b/sca-cpp/trunk/hosting/server/ssl-start index d699089847..a3bde7f28d 100755 --- a/sca-cpp/trunk/hosting/server/ssl-start +++ b/sca-cpp/trunk/hosting/server/ssl-start @@ -22,7 +22,6 @@ # 127.0.0.1 www.example.com here=`echo "import os; print os.path.realpath('$0')" | python`; here=`dirname $here` -host=`hostname` # Create SSL certificates ../../modules/http/ssl-ca-conf tmp www.example.com @@ -40,6 +39,17 @@ fi ../../components/cache/memcached-start tmp 11211 ../../components/cache/memcached-start tmp 11212 +# Configure database +../../components/sqldb/pgsql-conf tmp + +# Start database +../../components/sqldb/pgsql-start tmp + +# Load database tables +./drop-tables 1>/dev/null 2>/dev/null +./create-tables >/dev/null +./load-tables >/dev/null + # Clear document cache rm -rf tmp/cache @@ -79,20 +89,20 @@ rm -rf tmp/cache if [ -x ../../components/log/scribe-cat ]; then cat >tmp/conf/log.conf <tmp/conf/log-ssl.conf <tmp/conf/mod-security-log.conf <