Permalink
Browse files

Config now works with Stackato. Updated README.

  • Loading branch information...
1 parent 02b8dcf commit dfc07f223a305fef974cbfc93ddc06af5fa9f1af Troy Topnik committed Apr 27, 2012
Showing with 22 additions and 62 deletions.
  1. +14 −8 README.md
  2. +8 −2 config/autoconfig.php
  3. +0 −35 config/config.php
  4. +0 −17 config/config.sample.php
View
@@ -1,19 +1,25 @@
# ownCloud Demo
-*Note*: This demo is not yet in a working state. Some bugs with headless
-setup of the database, filesystem and initial admin user need to be
-resolved. If you'd like to take a crack at it yourself, this may help:
+ownCloud is a flexible, open source file sync and share solution. This
+demo shows how easily it can be pushed to Stackato.
-http://owncloud.org/install/
+This repo may be replaced with a proper fork from [ownCloud's git
+repo](http://gitorious.org/owncloud) soon. At the moment, it's a copy of
+the 3.0.2 stable release.
-This repo may be replaced with a proper fork of ownCloud's git
-repo in the near future.
+ * Project homepage: http://owncloud.org/
+ * The company behind ownCloud: https://owncloud.com/
+ * License: AGPLv3
-http://gitorious.org/owncloud
+# Configuration
-At the moment, it's a copy of the 3.0.2 stable release.
+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
+
View
@@ -4,9 +4,15 @@
$mysql_config = $services_json["mysql-5.1"][0]["credentials"];
$AUTOCONFIG = array(
-"installed" => true,
+"installed" => false,
"adminlogin" => "admin@stackato.local",
"adminpass" => "changeme",
-"directory" => "/app/app/data"
+"directory" => "/app/app/data",
+"dbtype" => "mysql",
+"dbname" => $mysql_config["name"],
+"dbuser" => $mysql_config["user"],
+"dbpass" => $mysql_config["password"],
+"dbhost" => $mysql_config["hostname"],
+"dbtableprefix" => "oc_"
);
?>
View
@@ -1,35 +0,0 @@
-<?php
-$services = getenv("VCAP_SERVICES");
-$services_json = json_decode($services,true);
-$mysql_config = $services_json["mysql-5.1"][0]["credentials"];
-
-define("DEBUG", true);
-
-$CONFIG = array(
-"installed" => true,
-"dbtype" => "mysql",
-"dbname" => $mysql_config["name"],
-"dbuser" => $mysql_config["user"],
-"dbpassword" => $mysql_config["password"],
-"dbhost" => $mysql_config["hostname"],
-"dbtableprefix" => "oc_",
-"forcessl" => false,
-"enablebackup" => false,
-"theme" => "",
-"3rdpartyroot" => "",
-"3rdpartyurl" => "",
-"knowledgebaseenabled" => true,
-"knowledgebaseurl" => "",
-"appstoreenabled" => true,
-"appstoreurl" => "",
-"mail_smtpmode" => "sendmail",
-"mail_smtphost" => "127.0.0.1",
-"mail_smtpauth" => "false",
-"mail_smtpname" => "",
-"mail_smtppassword" => "",
-"appcodechecker" => "",
-"log_type" => "",
-"logfile" => "/app/app/oc.log",
-"loglevel" => "Debug",
-);
-?>
@@ -1,17 +0,0 @@
-<?php
-
-define("DEBUG", true);
-
-$CONFIG = array(
-"installed" => false,
-"dbtype" => "sqlite",
-"dbname" => "owncloud",
-"dbuser" => "",
-"dbpassword" => "",
-"dbhost" => "",
-"dbtableprefix" => "",
-"forcessl" => false,
-"enablebackup" => false,
-// "datadirectory" => ""
-);
-?>

0 comments on commit dfc07f2

Please sign in to comment.