php rocketeer

8
Rocketeer – Deploying with PHP An alternative to capistrano/chef By: Joshua Copeland @PsyCodeDotOrg

Upload: joshua-copeland

Post on 12-Aug-2015

37 views

Category:

Software


3 download

TRANSCRIPT

Page 1: PHP Rocketeer

Rocketeer – Deploying with PHP

An alternative to capistrano/chef

By: Joshua Copeland@PsyCodeDotOrg

Page 2: PHP Rocketeer

What is Rocketeer?

• Was built primarily for the laravel framework• Easy to setup deployment environments• Made with PHP and is v2 is in PHP 5.4+• Older V1 killed a server of mine, no clue• V1.2.2 is old but uses PHP 5.3• When it works, it is wonderful• Config files are easy to read and modify

Page 3: PHP Rocketeer

Installation

• Curl http://rocketeer.autopergamene.eu/versions/rocketeer.phar > /usr/local/bin/rocketeer && chmod 755 /usr/local/bin/rocketeer

Page 4: PHP Rocketeer

Usage• $ php rocketeer• check Check if the server is ready to receive the application• cleanup Clean up old releases from the server• current Display what the current release is• deploy Deploys the website• flush Flushes Rocketeer's cache of credentials• help Displays help for a command• ignite Creates Rocketeer's configuration• list Lists commands• rollback Rollback to the previous release, or to a specific one• setup Set up the remote server for deployment• strategies Lists the available options for each strategy• teardown Remove the remote applications and existing caches• test Run the tests on the server and displays the output• update Update the remote server without doing a new release

Page 6: PHP Rocketeer

How it works

• Put your deploy target information and repository of code you want to deploy when asked which creates a .rocketeer directory in your project root and your home directory.

• Configs for project can be committed.• Add hooks into events to do custom tasks.• If both servers don’t have PHP 5.4+ then Upgrade

them. Otherwise Rocketeer becomes useless.• Keep configs private if password or ssh key is kept in

the projects version control system.

Page 7: PHP Rocketeer

Add via Composer

• Add to composer.json– "anahkiasen/rocketeer": "2.0.*"

Page 8: PHP Rocketeer

bin/rocketeer ignite

No connections have been set, please create one: (production)devNo host is set for [dev], please provide one: yourhost.comNo username is set for [dev], please provide one:usernameNo password or SSH key is set for [dev], which would you use? (key) [key/password]passwordNo password is set for [dev], please provide one:No repository is set for [repository], please provide one:https://bitbucket.org/your/repoNo username is set for [repository], please provide one:userNo password is set for [repository], please provide one: