Rocketeerは、PHPのタスク管理&デプロイ用のプロダクトです。
Laravelフレームワークの設計思想に影響をうけて開発されていて、簡単に素早く、エレガント!に利用することができます。また、小規模なHTML/CSSサイトから大規模ウェブサイトのデプロイまで、柔軟に対応することができます。

ちなみに、Pharを利用したPHP環境への導入は以下
curl http://rocketeer.autopergamene.eu/versions/rocketeer.phar > /usr/local/bin/rocketeer && chmod 755 /usr/local/bin/rocketeer
PHP環境でのデプロイツールなので、標準でPHPUnitやcomposerの実行に対応しています。
今回は、Laravel環境へRocketeerを導入してみます。
Quick Start
composer.jsonにpackageを記述。
// 略
"require": {
"laravel/framework": "4.2.*",
"anahkiasen/rocketeer": "dev-master"
},
// 略
composer updateを実行
> composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing kzykhys/parallel (v0.1.0)
Loading from cache
- Installing anahkiasen/rocketeer (dev-master 3161146)
Downloading: 100%
anahkiasen/rocketeer suggests installing anahkiasen/rocketeer-campfire
(Campfire plugin to create deployments notifications)
anahkiasen/rocketeer suggests installing anahkiasen/rocketeer-slack
(Slack plugin to create deployments notifications)
anahkiasen/rocketeer suggests installing ext-pcntl
(Allow parallel deployments)
Writing lock file
Generating autoload files
Generating optimized class loader
> php artisan config:publish anahkiasen/rocketeer
Configuration published for package: anahkiasen/rocketeer
>
ダウンロードできた。
続いてLaravelへの統合。
config/app.php
'providers' => array(
//略
'Rocketeer\RocketeerServiceProvider',
),
//略
'aliases' => array(
//略
'Rocketeer' => 'Rocketeer\Facades\Rocketeer',
),
artisanコマンドで設定ファイルを配布
> php artisan config:publish anahkiasen/rocketeer
設定ファイルが作成されて、

deployコマンドが使えるようになりましたとさ。
> php artisan Laravel Framework version 4.2.11 Usage: [options] command [arguments] deploy deploy:check Check if the server is ready to receive the application deploy:cleanup Clean up old releases from the server deploy:current Display what the current release is deploy:deploy Deploys the website deploy:flush Flushes Rocketeer's cache of credentials deploy:ignite Creates Rocketeer's configuration deploy:plugin-config Publishes the configuration of a plugin deploy:plugin-install Install a plugin deploy:plugin-list Lists the currently enabled plugins deploy:rollback Rollback to the previous release, or to a specific one deploy:setup Set up the remote server for deployment deploy:strategies Lists the available options for each strategy deploy:teardown Remove the remote applications and existing caches deploy:test Run the tests on the server and displays the output deploy:update Update the remote server without doing a new release
おしまい。





