From ed760305fd31e9dea9965a0342f752ebed037582 Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Tue, 30 Jul 2013 02:14:05 +0300 Subject: [PATCH] Added deployment instructions to the README file --- README.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dfaebb69..d27e4617 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,32 @@ -phpmyadmin-error-reporting-server -================================= +Error Reporting Server +====================== -phpmyadmin server side component for the error reporting system +phpmyadmin server side component for the error reporting system. It uses CakePHP v2.3 with some extra plugins like migrations, debugkit and OAuth component. + +# How To deploy # + +In order to deploy the app in this repo you need to follow these steps: +- Clone this repo or extract the zip file +- Add a virtual hosts entry pointing at the directory where you extracted the files in the previous step. Make sure that the installation is in the document root. The directory entry should look similar to this: +``` + + ServerAdmin webmaster@localhost + ServerName reports.phpmyadmin.net + + DocumentRoot /path/to/repo/dir/app/webroot + + AddType application/x-httpd-php .html + Options Indexes FollowSymLinks MultiViews + AllowOverride All + Order allow,deny + allow from all + + + ErrorLog "/var/log/httpd/dummy-host.example.com-error_log" + CustomLog "/var/log/httpd/dummy-host.example.com-access_log" common + +``` +- Run the migrations to generate the migrations table `Console/cake Migrations.migration run all -p Migrations` +- Run the migrations that have been created so far to setup the database `Console/cake Migrations.migration run all` +- Rename the example files database.example.php and core.example.php to database.php and core.php respectively and fill out the required info. Make sure to change the salts and the debug level in the core.php file and the database credentials in the database.php file +- Rename the oauth.example.php to oauth.php and follow the instructions to set the appropriate variables in the file