mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-09 14:58:57 +02:00
Major overhauling and refactoring of Magallanes Command and Tasks modulairty and workflow.
ADVICE: there is no Backwards Compatibility with custom tasks, those using the _config instance will be broken or those using the getEnvironmentName().
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
### List of Commands ###
|
||||
|
||||
# Installs Magallanes on the system
|
||||
sudo mage install
|
||||
|
||||
# Displays Magallanes version
|
||||
mage version
|
||||
|
||||
# Creats a Magallanes instance configuration
|
||||
mage init
|
||||
|
||||
# Creates a compiled version of Magallanes using phar
|
||||
mage compile
|
||||
|
||||
# Upgrades Magallanes itself
|
||||
mage upgrade
|
||||
|
||||
# Add a new Environment configuration
|
||||
mage add environment --name=production
|
||||
|
||||
# Add a new Environment configuration with releases enabled
|
||||
mage add environment --name=production --enableReleases
|
||||
|
||||
# Performs a SCM Update, if configured
|
||||
mage update
|
||||
|
||||
# Deploys Application to Production environment
|
||||
mage deploy to:production
|
||||
|
||||
# Deploys Application to Production environment, overriding the current release
|
||||
mage deploy to:production --overrideRelease
|
||||
|
||||
# Locks deployment to Production environment
|
||||
mage lock to:production
|
||||
|
||||
# Unlocks deployment to Production environment
|
||||
mage unlock to:production
|
||||
|
||||
# Lists all Releases on the Production environment
|
||||
mage releases list to:production
|
||||
|
||||
# Rollback to the last Release on the Production environment
|
||||
mage releases rollback to:production
|
||||
mage releases rollback --release=0 to:production
|
||||
|
||||
# Rollback to the first, second, or thrith Release before the current Release on the Production environment
|
||||
mage releases rollback --release=-1 to:production
|
||||
mage releases rollback --release=-2 to:production
|
||||
mage releases rollback --release=-3 to:production
|
||||
|
||||
# Rollback to a specific Release on the Production environment
|
||||
# mage releases rollback --release=20120101172148 to:production
|
||||
|
||||
|
||||
### List of UPCOMING Commands ###
|
||||
# mage config add host s05.example.com to:[production]
|
||||
# mage config git git://github.com/andres-montanez/Zend-Framework-Twig-example-app.git
|
||||
# mage config svn svn://example.com/repo
|
||||
# mage task:deployment/rsync to:production
|
||||
@@ -2,11 +2,14 @@
|
||||
deployment:
|
||||
user: root
|
||||
from: ./
|
||||
to: /var/www/vhosts/example.com/staging
|
||||
#hosts: /tmp/current-staging-hosts.txt
|
||||
to: /var/www/
|
||||
releases:
|
||||
enabled: true
|
||||
max: 5
|
||||
symlink: current
|
||||
directory: releases
|
||||
hosts:
|
||||
- s01.example.com:22
|
||||
- s02.example.com
|
||||
- localhost
|
||||
tasks:
|
||||
pre-deploy:
|
||||
- scm/update
|
||||
@@ -14,4 +17,5 @@ tasks:
|
||||
- privileges
|
||||
- sampleTask
|
||||
- sampleTaskRollbackAware
|
||||
#post-deploy:
|
||||
#post-release
|
||||
#post-deploy:
|
||||
|
||||
Reference in New Issue
Block a user