From 12b5f24867732c4175404a8a203ec26abf7dad50 Mon Sep 17 00:00:00 2001 From: Steven Hsu Date: Wed, 29 Aug 2012 09:26:22 -0700 Subject: [PATCH 1/2] Added Stackato required files --- README.md | 22 ++++++++++++++++++++++ stackato.yml | 13 +++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 README.md create mode 100644 stackato.yml diff --git a/README.md b/README.md new file mode 100644 index 000000000000..66891600603c --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# ownCloud Demo + +ownCloud is a flexible, open source file sync and share solution. This +demo shows how easily it can be pushed to Stackato. + + * Project homepage: http://owncloud.org/ + * The company behind ownCloud: https://owncloud.com/ + * License: AGPLv3 + +# Configuration + +You may wish to change the admin account login and password which is set +in the 'config/autoconfig.php' file, also sets the Stackato database +service credentials the specifies the data directory (linked to the +filesystem service - see 'stackato.yml'). + +## Deploying to Stackato + + stackato push -n + +**Note**: The initial admin login is the same as your Stackato user +(email address). The default password is 'changeme'. diff --git a/stackato.yml b/stackato.yml new file mode 100644 index 000000000000..659bc56ec142 --- /dev/null +++ b/stackato.yml @@ -0,0 +1,13 @@ +name: owncloud +framework: + type: php + runtime: php +mem: 128M +min_version: + client: 1.4.3 +services: + ${name}-db: mysql + ${name}-fs: filesystem +hooks: + pre-running: + - ln -s $STACKATO_FILESYSTEM data From 3bd87948f48910f27fa1e059e863bcf312cce5f3 Mon Sep 17 00:00:00 2001 From: Steven Hsu Date: Wed, 29 Aug 2012 09:29:09 -0700 Subject: [PATCH 2/2] Added autoconfig for Stackato --- config/autoconfig.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 config/autoconfig.php diff --git a/config/autoconfig.php b/config/autoconfig.php new file mode 100644 index 000000000000..6362018e8864 --- /dev/null +++ b/config/autoconfig.php @@ -0,0 +1,24 @@ + false, +"adminlogin" => $admin, +"adminpass" => "changeme", +"directory" => "/app/app/data", +"dbtype" => "mysql", +"dbname" => $db_name, +"dbuser" => $url_parts{'user'}, +"dbpass" => $url_parts{'pass'}, +"dbhost" => $url_parts{'host'}, +"dbtableprefix" => "oc_" +); +?>