github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

mcurry / status

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 29
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (1)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

CakePHP plugin showing app status dashboard — Read more

  cancel

http://www.pseudocoder.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

removed hanging comma in sample code 
mcurry (author)
Tue Dec 08 08:31:38 -0800 2009
commit  500ccfd2e11805adf299121b0fcff54d5ac49bcc
tree    8a5d600d749e771509fa32fecd7f4038523bcf0c
parent  3a53cc0198c0acc07aaae3e34d510aed2246c17d
status /
name age
history
message
file README Tue Dec 08 08:31:38 -0800 2009 removed hanging comma in sample code [mcurry]
directory config/ Sat Jul 11 18:12:43 -0700 2009 added missing sql file [mcurry]
directory controllers/ Thu Aug 06 20:15:21 -0700 2009 allow panels to be part of app [mcurry]
directory models/ Mon Aug 17 19:41:02 -0700 2009 updated for changes in XML in Cake 1.2.4 [mcurry]
file status_app_controller.php Mon Aug 17 19:40:43 -0700 2009 moved security check to beforeRender so Auth pe... [mcurry]
file status_app_model.php Fri Jul 03 13:24:18 -0700 2009 README and file headers [mcurry]
directory vendors/ Sat Jul 11 11:52:32 -0700 2009 unit test panel [mcurry]
directory views/ Thu Aug 06 20:15:21 -0700 2009 allow panels to be part of app [mcurry]
README
/*
 * App Status Planel CakePHP Plugin
 * Copyright (c) 2009 Matt Curry
 * www.PseudoCoder.com
 * http://github.com/mcurry/status
 *
 * @author      Matt Curry <matt@pseudocoder.com>
 * @license     MIT
 *
 */
 
/* About */
  One convienent page where you can get info about your app.  Google analytics, log files, cron'd shells, etc.  In 
  addition to the core panels it is simple to add your own.

/* Instructions */
  1. Download the plugin to /app/plugins/status
  2. Add the panels you want active in your bootstrap.php:
    Configure::write('Status.panels', array('Status.google_analytics' => array('visits', 'referrers', 'keywords'),
                                            'Status.system',
                                            'Status.shell',
                                            'Status.tests'
                                            'Status.logs' => array('error', 'debug')
                                           ));
  3. By default no one can reach the status panel.  It is up to you to deteremine who will have access.  In your 
  AppController::beforeFilter() put:
    if(...) {
      Configure::write('Status.allow', true);
    }
  4. Go to http://yourapp/status
  
/* Core Panels */
  /* Google Analytics */
  Multiple panels for quick info on your visits, refererrs and search engine keywords using the Google Analytics API.  
  Adjustable timeframes to get a recent or long range snapshot.
  You must set up the config file to access your analytics via Google's API:
    1) Rename /app/plugins/status/config/status.php.default to status.php
    2) Edit the file to include your Google email and password.
       The account_id can be found in the url at Google 
       (https://www.google.com/analytics/reporting/?reset=1&id=xxxxxxxx)
    
  /* Shell */
  Add logging to your shells to capture results.  Great for shells that run from cron.  Clicking on the shell link in 
  the panel pops open a window with detailed information.  Requires integrating the log task in your shell:
    1) Run the SQL in /app/plugins/status/config/sql/status_consoles.sql
    2) Include the task in your shell's attributes:
       var $tasks = array('Log');
    3) Start the logging in the beginning of your shell:
       $this->Log->start();
    4) Store any messages you want to be available in the panel:
       $this->Log->out("Processed $count records");
    5) Signal the script is done:
       $this->Log->end();

  /* Tests */
  Run your app's unit tests right from the panel, regardless of debug mode.  If there are any errors you can click on 
  the summary line to get the full details.
  
  /* System */
  Basic infomation about the system hardware, including disk space and uptime.
  
  /* Logs */
  Show Cake's log files.  Can be used on any log file in /app/tmp/logs, including custom ones.  Just pass the log file 
  name(s).

/* Other Panels */
  /* Click Tracking */
  Track links that are click on your app.  Mainly used for outgoing affiliate links, but can also be used for downloaded 
  files.
  http://github.com/mcurry/click
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server