Unlocking the Future of AI Agents with Large Language Models
PHP Rocketeer
1. Rocketeer – Deploying with PHP
An alternative to capistrano/chef
By: Joshua Copeland
@PsyCodeDotOrg
2. 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
4. 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
6. 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.
7. Add via Composer
• Add to composer.json
– "anahkiasen/rocketeer": "2.0.*"
8. bin/rocketeer ignite
No connections have been set, please create one:
(production)dev
No host is set for [dev], please provide one: yourhost.com
No username is set for [dev], please provide one:username
No password or SSH key is set for [dev], which would you use?
(key) [key/password]password
No password is set for [dev], please provide one:
No repository is set for [repository], please provide
one:https://bitbucket.org/your/repo
No username is set for [repository], please provide one:user
No password is set for [repository], please provide one: