Skip to content

Instantly share code, notes, and snippets.

@adamfairholm
Created November 17, 2010 19:44
Show Gist options
  • Save adamfairholm/703929 to your computer and use it in GitHub Desktop.
Save adamfairholm/703929 to your computer and use it in GitHub Desktop.
EE Deployment Helper Accessory
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* EE2 Deploy Helper Accessory
*
* @package ExpressionEngine
* @subpackage Control Panel
* @category Accessories
* @author Green Egg Media
* @link http://www.greeneggmedia.com
*/
class Deploy_helper_acc {
var $name = 'Deployment Helper';
var $id = 'deploy_helper';
var $version = '1.0';
var $description = 'Helpful stuff if you are deploying.';
var $sections = array();
/**
* Constructor
*/
function Deploy_helper_acc()
{
$this->EE =& get_instance();
}
// --------------------------------------------------------------------------
/**
* Set Sections
*
* Set content for the accessory
*
* @access public
* @return void
*/
function set_sections()
{
$dev_checklist = '<ul><li>1. Backup Your Data</li>';
$dev_checklist .= '<li><a href="'.BASE.AMP.'C=design&M=sync_templates">2. Sync Templates</a></li>';
$dev_checklist .= '<li>3. Export Development Database</li>';
$dev_checklist .= '<li>4. Create Database on Production Server</li>';
$dev_checklist .= '<li>5. Migrate The File System and Set Permissions</li>';
$dev_checklist .= '<li>6. Update database.php & config.php</li></ul>';
$this->sections['Development Environment'] = $dev_checklist;
$prod_checklist = '<ul><li>1. Update paths in the Control Panel</li>';
$prod_checklist .= '<li>2. Update paths in templates, CSS, JS, and third-party add-ons</li>';
$prod_checklist .= '<li><a href="'.BASE.AMP.'C=design&M=sync_templates">3. Verify Template Synchronization</a></li>';
$prod_checklist .= '<li><a href="'.BASE.AMP.'C=tools_data&M=clear_caching">4. Clear your cache</a></li></ul>';
$this->sections['Production Environment'] = $prod_checklist;
$paths = '<ul><li><a href="'.BASE.AMP.'C=admin_content&M=channel_management">1. Channel Path Settings</a></li>';
$paths .= '<li><a href="'.BASE.AMP.'C=admin_system&M=general_configuration">2. General Configuration</a></li>';
$paths .= '<li><a href="'.BASE.AMP.'C=admin_content&M=file_upload_preferences">3. File Upload Preferences</a></li>';
$paths .= '<li><a href="'.BASE.AMP.'C=admin_system&M=image_resizing_preferences">4. Image Resizing Preferences</a></li>';
$paths .= '<li><a href="'.BASE.AMP.'C=admin_system&M=emoticon_preferences">5. Emoticon Preferences</a></li>';
$paths .= '<li><a href="'.BASE.AMP.'C=admin_system&M=captcha_preferences">6. CAPTCHA Preferences</a></li>';
$paths .= '<li><a href="'.BASE.AMP.'C=design&M=global_template_preferences">7. Global Template Preferences</a></li></ul>';
$this->sections['Paths to Update'] = $paths;
$resources = '<ul><li><a href="http://www.greeneggmedia.com/blog/entry/moving-from-development-to-production-on-ee-2" target="_blank">Deployment Guide Blog Post</a></li>';
$resources .= '<li><a href="http://devot-ee.com/add-ons/deeploy-helper/" target="_blank">Deeploy Helper</a></li>';
$resources .= '<li><a href="http://devot-ee.com/add-ons/reelocate/" target="_blank">Reelocate</a></li>';
$this->sections['Resources'] = $resources;
}
}
/* End of file acc.deploy_helper.php */
/* Location: ./expressionengine/accessories/acc.deploy_helper.php */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment