<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 20 May 2013 19:57:59 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NetTuts.com: Setting Up A Staging Environment]]></title>
      <guid>http://www.phpdeveloper.org/news/19187</guid>
      <link>http://www.phpdeveloper.org/news/19187</link>
      <description><![CDATA[<p>
On NetTuts.com today <i>Gabriel Manricks</i> walks you through <a href="http://net.tutsplus.com/tutorials/setting-up-a-staging-environment/">setting up a staging environment</a> using Vagrant to install and setup a virtual machine running Apache 2 and PHP 5.4.
</p>
<blockquote>
Creating a staging environment is specific to your production environment. There is no magic solution that works in every situation. But most cases follow a similar pattern, and I'll cover all the key points as we go along. It's fair to assume that most people deploy their apps with some kind of versioning tool (like GIT). [...] Besides GIT, you have to think about the languages, software, and "special" features your production servers offer. 
</blockquote>
<p>
All of the commands and configuration files you'll need to make the automatic setup work are included in the article. It's based on a Debian (Squeeze) base image and uses packages to install the needed software. They also install other PHP extensions like mycrypt, GD, curl, APC and database support (MySQL, SQLite and Postgres). They help you get Apache set up to serve the application and work with git and its hooks to push the code and run Composer.
</p>]]></description>
      <pubDate>Fri, 15 Feb 2013 10:49:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Fortrabbit.com: Multi Stage Deployment for Website Development]]></title>
      <guid>http://www.phpdeveloper.org/news/18538</guid>
      <link>http://www.phpdeveloper.org/news/18538</link>
      <description><![CDATA[<p>
On the Fortrabbit.com blog, there's a new post looking at a system for <a href="http://blog.fortrabbit.com/multi-stage-deployment-for-website-development/">multi-stage deployment</a> at a high level, applicable to most of the tools out there.
</p>
<blockquote>
This article targets new developers and developers which never had the chance working with multi versioned websites before. If this fit's you: Read it. Staging is a good tool in your belt you won't regret to know. [...] You, your co-developers, authors and whatnot using [staging] to prepare and test stuff which is to be released into production. In short: you do not perform open-heart surgery by coding directly on the production website. 
</blockquote>
<p>
He talks about the "stages" part of the "multi-stage" structure, mentioning the separation of purpose they provide and an example of a three level configuration (dev, staging, production). An optional fourth level can be added as well for testing purposes. There are some downsides to this approach, though: data synchronization, code deployment delay and complexity. There's also a mention of <a href="https://github.com/nvie/gitflow">gitflow</a> and how it could help make this environment easier to set up for your applications.
</p>
]]></description>
      <pubDate>Mon, 01 Oct 2012 12:11:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Adam Patterson's Blog: DIY simple staging server.]]></title>
      <guid>http://www.phpdeveloper.org/news/17026</guid>
      <link>http://www.phpdeveloper.org/news/17026</link>
      <description><![CDATA[<p>
<i>Adam Peterson</i> has posted an interesting idea for those out there running an internal staging server they want to constantly keep up to date with the main line of code (without manual intervention) - <a href="http://www.adampatterson.ca/blog/2011/10/diy-simple-staging-server/">a git pull web frontend</a> combined with git post-receive hooks.
</p>
<blockquote>
This [move from svn to git] left a bit of a gap in my process where I could no longer test on a remote server without updating it manually by S/FTP or opening terminal and manually calling a git pull. Open terminal and manually git pull it did break up the work flow a bit so using the <a href="http://www.dingoframework.com/">Dingo framework</a> I created a very simple Git helper and gave it its own URL something like git/pull.
</blockquote>
<p>
He added a post-receive hook to his git server that calls this "git/pull" URL on the staging server and updates the code on the server. This provides an easy asynchronous way to update things on another server. Note, though, that this should never be done on a publicly accessible server - it's a pretty large security hole (or at the very least made secure somehow). He used <a href="http://www.dingoframework.com/">Dingo</a> to create his interface, but something like the <a href="http://slimframework.com">Slim micro-framework</a> could have worked just as well. You can <a href="https://gist.github.com/1293697">view his code on github</a>.
</p>]]></description>
      <pubDate>Fri, 21 Oct 2011 10:29:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Implementing a staging/live website system with symfony and Apostrophe CMS]]></title>
      <guid>http://www.phpdeveloper.org/news/15142</guid>
      <link>http://www.phpdeveloper.org/news/15142</link>
      <description><![CDATA[<p>
On the ServerGrove.com blog today there's <a href="http://blog.servergrove.com/2010/09/15/implementing-a-staginglive-website-system-with-symfony-and-apostrophe-cms/">a new tutorial posted</a> showing how to, using <a href="http://symfony-project.org">symfony</a> and the Apostrophe CMS, create a full staging and live setup with different URLs for each.
</p>
<blockquote>
This system allows you to make changes to a website and preview them before actually going live. It can be implemented with any website, we will show the necessary requirements and steps to implement with symfony and Apostrophe CMS, but you can also take parts of the tutorial and implement them without these applications. We have found this workflow suitable in a number of projects and wanted to share it. 
</blockquote>
<p>
The process can be modified to fit the needs of your symfony application (or really any app with enough tweaking) since it uses several "off the shelf" tools like <a href="http://httpd.apache.org/">Apache</a>, <a href="http://php.net">PHP</a>, <a href="http://www.symfony-project.org/">symfony</a>, <a href="https://launchpad.net/gearmand/">Gearman</a> and <a href="http://supervisord.org/">Supervisord</a>. The <a href="http://www.symfony-project.org/plugins/sfSyncContentPlugin">sfSyncContentPlugin</a> plugin is a bit more specific to Apostrophe, though. They walk you through the integration of all of the tools - starting up Gearman and Supervisord, making a worker and setting up your symfony configuration to have a "publish" route to set things in motion. 
</p>]]></description>
      <pubDate>Thu, 16 Sep 2010 12:06:17 -0500</pubDate>
    </item>
  </channel>
</rss>
