News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
How to Deploy Symfony Apps with Capifony
September 25, 2014 @ 10:55:27

The SitePoint PHP blog has a tutorial today showing you how you can use the popular Capistrano tool to deploy Symfony-based applications. More specifically, it's focused in on one tool, Calpifony, that's a bit more tailored to what a Symfony deployment needs.

Say you have a Symfony application. At some point, you would like to deploy it to your server and show it to the world. Of course, you can do it all manually, but these days you can also choose to use a tool like Capifony. If you have developed Ruby applications in the past, you are perhaps familiar with Capistrano. Capistrano is a tool to deploy your Ruby application to your server. Capifony has been created on top of Capistrano, and is basically a collection of deployment recipes. In this article, we are going to deploy a Symfony application to a server with Capifony.

He starts off with a section giving an overview of how the Capifony tool works and how important the directory structure is. He then guides you through the installation of the tool and configuring your first simple project. He includes an example "deply.rb" configuration and walks through each piece, describing what it does and how to add some additional commands to the list. The post ends with the full updates configuration that makes the connection to the server, downloads a copy of a Git repository and executes Assetic and Bower commands on build.

0 comments voice your opinion now!
tutorial capifony symfony deployment capistrano introduction install configure

Link: http://www.sitepoint.com/deploy-symfony-apps-capifony/

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 8 of 8)
September 18, 2014 @ 11:20:04

Matthew Weier O'Phinney has posted the last part of his "Deployment with Zend Server" series with part eight. This part focuses on some hints around the actual deployment and automation.

This is the final in a series of eight posts detailing tips on deploying to Zend Server. Zend Server SDK to deploy your Zend Server deployment packages (ZPKs) from the command line. Today, I'll detail how I automate deployment with zf-deploy and zs-client (the Zend Server SDK), and wrap up the series with some closing thoughts.

He quickly summarizes the previous parts of the series as individual steps and wonders if there's a better way than doing each of them manually. He shows exactly this with the automation handling that zf-deploy and zs-client offer combined with a make script defining steps for the deploy, ZPK update and a cleanup/Composer update task.

0 comments voice your opinion now!
deployment zendserver tip series part8 automation make command zfdeploy zsclient

Link: https://mwop.net/blog/2014-09-18-zend-server-deployment-part-8.html

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 7 of 8)
September 17, 2014 @ 10:44:13

Matthew Weier O'Phinney has posted his next-to-last article in his "Deployment with Zend Server" series, part seven of eight concerning the "zs-client" tool.

This is the seventh in a series of eight posts detailing tips on deploying to Zend Server. The previous post in the series detailed setting up and clearing page caching. Today, I'm sharing how to use the Zend Server SDK to deploy your Zend Server deployment packages (ZPKs) from the command line.

Zs-client is a handy tool that lets you interact directly with the Zend Server API is a more programatic way without having to worry about the request signing process. He walks you through a sample use of the tool and shows how to add a target application and use the tool to get its current status. He also includes a basic command that lets you run an automatic update on the application.

0 comments voice your opinion now!
zsclient deployment zendserver series part7 api

Link: https://mwop.net/blog/2014-09-16-zend-server-deployment-part-7.html

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 6 of 8) - Page Caching
September 11, 2014 @ 14:57:08

Matthew Weier O'Phinney has posted his sixth part (of eight) in his "deployment with Zend Server" tips and tricks. In this latest post he talks about page caching.

This is the sixth in a series of eight posts detailing tips on deploying to Zend Server. The previous post in the series detailed setting job script status codes. Today, I'm sharing some tips around setting up page caching, and jobs for clearing the Zend Server page cache.

He starts off describing what Zend Server offers in the way of page caching and provides an example (with screenshots) of how he sets his up to work with multiple subdomains. He then shows how to set what variable the caching looks at to tell the difference between pages and how to clear the cache on deploy. He includes a simple script to help with that, running through a list of paths and calling the flush on each.

0 comments voice your opinion now!
zendserver deployment tips series part6 page caching

Link: https://mwop.net/blog/2014-09-11-zend-server-deployment-part-6.html

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 5 of 8)
September 10, 2014 @ 13:40:49

Matthew Weier O'Phinney has posted the latest in his "deployment with Zend Server" tips today, part five of eight. In this latest post he talks about setting the status of a job.

This is the fifth in a series of eight posts detailing tips on deploying to Zend Server. The previous post in the series detailed how to secure your Job Queue job scripts. Today, I'm sharing some best practices around writing job scripts, particularly around how to indicate execution status.

When he talks about the "status" of a job he's referencing the return code that's provided back to the executing script sharing the pass/fail status of its execution. He shows how to use the ZendJobQueue object and the setCurrentJobStatus to return a constant, either "FAILED" or "OK". He shows how to use it in an isolated example, outputting the results back as a plain text message that can be found in the "Output" tab of the job.

0 comments voice your opinion now!
zendserver deployment tips series part5 return status failed ok

Link: https://mwop.net/blog/2014-09-09-zend-server-deployment-part-5.html

SitePoint PHP Blog:
Deploy Your Website Using Laravel and Git
September 08, 2014 @ 09:28:50

The SitePoint PHP blog has a new tutorial by James Dow showing you how to use git and Laravel for application deployment. This isn't just about deploying a Laravel application, though. It includes a method for automating processes once the deployment is complete.

You can't be a successful web developer without using some sort of deployment workflow for your websites. It doesn't matter how good or bad your workflow might be. If you can't get your website up to production then your client will never pay you for your hard work. [...] I wanted something that was as easy as pushing a repository with Git. More important, I wanted to be in full control when pushing content live. I was able to find a similar workflow that used Git to handle the file transferring. On top of that I found out I could also use the PHP framework Laravel to automate the more repetitive tasks.

He starts with the server side of things, showing you how to get the git repository created and structured. He then configures Laravel with a "remote" connection for the production server so it can reach out and execute the tasks. Finally he shows how to make the route (/deploy) that's executed when the route is called. In his example route he sets up a SSH request to the production server that changes to the web server root and makes a "git pull" request to get the latest code. It's an interesting use for something like Laravel, but I wonder if it's a good fit for the deployment need. This kind of thing could pretty easily be replaced with a small shell script.

0 comments voice your opinion now!
deployment laravel tutorial git ssh

Link: http://www.sitepoint.com/deploy-website-using-laravel-git/

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 4 of 8)
September 05, 2014 @ 09:22:38

Matthew Weier O'Phinney has posted the latest tip in his Zend Server deployment series, part 4 related to securing the scripts you use for your jobs (like cron, but run through Zend Server).

This is the fourth in a series of eight posts detailing tips on deploying to Zend Server. The previous post in the series detailed a trick I learned about when to execute a chmod statement during deployment. Today, I'm sharing a tip about securing your Job Queue job scripts.

He talks about the security concerns around the scripts you use for your jobs and how to protect them since they're exposed to the world as public scripts (if their URL can be tracked down, that is). He shares a few lines of code that can help prevent that, though - a check to see if it's running as a job (via getCurrentJobId) and returning a "403 Forbidden" if not.

0 comments voice your opinion now!
zendserver deployment tips series part3 security jobid

Link: https://mwop.net/blog/2014-09-04-zend-server-deployment-part-4.html

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 3 of 8)
September 03, 2014 @ 09:34:51

Matthew Weier O'Phinney has posted the third article in his "Deploying Zend Server Tips" series today. In this tip he talks about file permissions and execution of shell commands.

In the first tip, I detailed writing deployment scripts. One of the snippets I shared was a chmod routine. [...] The code is fine; what I did not share is where in the deployment script you should invoke it. As I discovered from experience, this is key.

He points out that the deployment is run under a different user than the web server user. Future writes to those files by the web server could fail because of it, so he recommends running the permission change as the last step of the deployment script. If this ti was interesting and you'd like to check out more, you can find them in the first and second parts of the series.

0 comments voice your opinion now!
zendserver deployment tips series part3 chmod script

Link: https://mwop.net/blog/2014-09-02-zend-server-deployment-part-3.html

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 2 of 8)
August 29, 2014 @ 11:55:04

Matthew Weier O'Phinney has posted the second part of his series with some tips around application deployment with Zend Server. In this latest post he shares his second tip related to recurring jobs.

This is the second in a series of eight posts detailing tips on deploying to Zend Server.The previous post in the series detailed getting started with zf-deploy to create ZPK packages to deploy to Zend Server. Today, I'm looking at how to created scheduled/recurring jobs using Zend Server's Job Queue; think of this as application-level cronjobs.

Instead of running the jobs as cron tasks (which may or may not be installed if there's multiple servers), he opts for a software-based approach. He walks you through the use of the Zend Server Job Queue to create a simple reoccurring execution to run a PHP script at a certain time. He includes some code examples with one showing just the scheduling of a job and the other showing how to detach previous jobs and add only the new ones that weren't scheduled before.

0 comments voice your opinion now!
deployment zendserver tip series part2 cron reoccurring jobs

Link: http://mwop.net/blog/2014-08-28-zend-server-deployment-part-2.html

Matthew Weier O'Phinney:
Deployment with Zend Server (Part 1 of 8)
August 27, 2014 @ 10:41:33

Matthew Weier O'Phinney has posted the first part of an eight part series he's writing about deploying applications with Zend Server. Zend Server is a product of Zend that provides an integrated platform for PHP-based applications, a self-contained environment making things easier to manage and enhance performance.

I manage a number of websites running on Zend Server, Zend's PHP application platform. I've started accumulating a number of patterns and tricks that make the deployments more successful, and which also allow me to do more advanced things such as setting up recurring jobs for the application, clearing page caches, and more.

His examples can be used with any of the Zend Server versions available, including the Development Edition that can be used for trial purposes. The remainder of the post is his first tip: using the zf-deploy tool to make deployment of your application simpler. He includes an example of a script he uses for the deployment (written in PHP) to ensure the environment is set up correctly.

0 comments voice your opinion now!
zendserver deployment tips series part1

Link: http://mwop.net/blog/2014-08-11-zend-server-deployment-part-1.html


Community Events





Don't see your event here?
Let us know!


update framework introduction install package zendserver podcast community opinion series tips release language deployment bugfix library version interview laravel symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework