capistrano-typo3-cms
This is an extension for the deployment tool Capistrano. This extension facilitates the deploy of TYPO3 CMS projects.
It includeds follows additional packages:
- capistrano
- capistrano-ext
- railsless-deploy
- capistrano_colors
Installation
Install it yourself wit rubygems package manager:
gem install capistrano-typo3-cms
Need help to install? http://docs.rubygems.org/read/chapter/3 Or easer with RVM: https://rvm.io/
Usage
Configuration
Capify your project
$ cd /path/to/your/project
$ capify ./
Edit your ./Capfile to include capistrano-typo3-cms
load 'deploy' if respond_to?(:namespace)
require 'capistrano'
require 'rubygems'
require 'railsless-deploy'
require 'capistrano-typo3-cms'
load 'lib/capistrano/mysql'
load 'config/deploy' # remove this line to skip loading any of the default
In case of using multistage create config files for every enviroment (deploy/staging.rb):
- http://capifony.org/cookbook/using-the-multistage-extension.html
- https://github.com/capistrano/capistrano/wiki/2.x-Multistage-Extension
Deploy
cap <enviroment> deploy:setup
cap <enviroment> deploy
Project roadmap
Version 0.0.1
- Documentation "Deploying with Capistrano and TYPO3 CMS
- Resolving dependencies for PHP projects
Version 1.0.0
Additional TYPO3:CMS tasks
typo3:cms:setup
typo3:cms:cc
typo3:cms:check
typo3:cms:data:push
typo3:cms:data:pull
typo3:cms:data:backup
Version 2.0.0
Including new package "capistrano-mysql" to manage database data.
mysql:push
mysql:pull
mysql:backup
mysql:sync <source_env> <target_env>
mysql:migrate
Version 3.0.0
CLI command support to create a new TYPO3 CMS project from the scratch.
$ typo3 init ./
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request