woutersioen
980d209fb4
Refactor cleaning up releases to a common function.
2014-07-16 17:07:19 +02:00
woutersioen
b869876c26
Refactor tar gz to reuse function.
2014-07-16 17:06:00 +02:00
woutersioen
f7e2163fed
Cleanup releases.
2014-07-16 17:04:23 +02:00
woutersioen
26bc4242d1
Revert excludes
2014-07-16 16:35:18 +02:00
woutersioen
f2e01280a5
Fix excludes for releases
2014-07-16 16:32:29 +02:00
woutersioen
014d98bc96
Implement releases in git-rebase
...
Note: the parameter repository needs to be set to make this work.
2014-07-16 16:29:44 +02:00
woutersioen
c7e1175e11
Make file locations work better from global install.
2014-07-16 15:52:23 +02:00
Rodmen
732cc20f1f
add user data and message to lock command
2014-06-26 11:05:00 -03:00
Benjamin Mermoz
35301cba8e
Fix hard coded 'current' symlink path in RsyncTask
2014-06-17 10:26:32 +02:00
Andrés Montañez
49a7e0857a
Missing use statement should be avoided #inslight
2014-06-13 16:25:24 -03:00
Andrés Montañez
1b2188f0b1
Tweaks.
2014-06-13 09:31:53 -03:00
Andrés Montañez
e10dea147f
Yaml - Replace Spyc with Symfony Yaml Component.
2014-06-13 09:31:44 -03:00
Andrés Montañez
d55637a120
Fix ApplyFaclsTask.
2014-06-12 18:24:40 -03:00
Andrés Montañez
92d3845052
Issue #70 , makes --release mandatory.
2014-06-12 18:22:13 -03:00
Andrés Montañez
17ebb5b30d
Add Rollback command as alias.
2014-06-12 18:16:30 -03:00
Andrés Montañez
e01fbc6151
Review and rework Composer tasks.
2014-06-12 17:42:47 -03:00
Andrés Montañez
a51056b9c1
Merge pull request #63 from oddnoc/remote-rsync
...
Add ability to use rsync rather than cp on remote
2014-06-12 17:29:17 -03:00
Andrés Montañez
9bcf8e063d
Tweaks on FileSystem Tasks.
2014-06-12 17:25:50 -03:00
Andrés Montañez
4528788d49
Reorganize common Deployment code.
2014-06-12 17:12:30 -03:00
Andrés Montañez
b174d04da2
Commented code should not be commited #inslight
2014-06-12 16:50:47 -03:00
Andrés Montañez
d17dd0eb27
Code refactoring.
2014-06-12 16:45:40 -03:00
Andrés Montañez
12f42dc110
Tweak SPYC.
2014-06-12 16:35:14 -03:00
Andrés Montañez
66ea107229
Merge branch 'master' of https://github.com/andres-montanez/Magallanes
...
Conflicts:
Mage/Task/Factory.php
2014-06-12 16:18:14 -03:00
Andrés Montañez
4e01cc3517
Tweaks and fixes.
2014-06-12 16:17:31 -03:00
Jan Malte Gerth
dacfaa2c5e
fixes #73 missing "Task" suffix for LinkSharedFiles
2014-06-11 17:35:40 +02:00
Jan Malte Gerth
f984531742
fixed failing testing for successful json_decode
2014-05-27 13:57:41 +02:00
Andrés Montañez
75e1131a70
Merge pull request #65 from iambrosi/namespace_fix
...
Fixed namespace for Filesystem tasks
2014-05-23 05:44:16 -07:00
Ismael Ambrosi
a30e6f6193
Removed unused use statements
2014-05-22 23:03:14 -03:00
Ismael Ambrosi
eee36a850a
Fixed namespace for Filesystem tasks
2014-05-22 22:56:05 -03:00
Fred Condo
1f6da7f8fb
Add ability to use rsync rather than cp on remote
...
This enables finer control (via excludes) when seeding the destination
directory for rsync. Because we know we have rsync available, we can use
rsync rather than cp by using configuration like this example:
strategy: rsync
rsync:
copy: true
copy_tool_rsync: true
rsync_excludes: ["assets", "silverstripe-cache"]
The default tool remains cp, so this change is backward-compatible.
2014-05-16 12:31:36 -07:00
Andrés Montañez
b98082b96f
Merge pull request #60 from tonynelson19/patch-1
...
Only call chown on releases if there's a userGroup
2014-05-14 17:39:29 -07:00
hrakotobe
7ad5403c81
change setting name
2014-05-09 18:15:03 +02:00
hrakotobe
47b089cb3e
force use of sh on remote server and make directory ownership check more portable
2014-05-09 17:53:35 +02:00
Tony Nelson
ea9c83b07f
Only call chown on releases if there's a userGroup
2014-05-08 15:41:05 -05:00
juanda
86ef278607
strategy git-rebase is enabled
2014-05-07 12:55:14 +02:00
Mario Mueller
eefec4cbc0
Added three new tasks.
...
One task for generating the composer production autoloader, one
for linking shared files and folders into the release and
one to set filesystem acls while rolling out a new release.
2014-05-04 08:55:04 +02:00
Mario Mueller
4c3f50608e
The git remote cache deployment task.
...
This tasks uses a remote checkout on the server to provide the release.
In our use case this remote cache resides in $to/$shared/git-remote-cache,
variable 'shared' is substituted with "shared" by default. At this time, the
remote cache is not build automatically, you need to provide a clean
checkout before you can start using it.
2014-05-02 16:43:31 +02:00
Andrés Montañez
8785a3498d
Update Config.php
2014-04-26 13:21:48 -07:00
Andrés Montañez
4d45c30bd4
Merge pull request #49 from Osukaru/master
...
Added identity file option for ssh and scp commands
2014-04-26 13:20:48 -07:00
David Lin
59574711c1
Fixed a bug in the builtin ChangeBranchTask.php
2014-04-15 09:59:16 +10:00
Osukaru
beb663e801
Added identity file option for ssh and scp commands
2014-04-07 12:20:41 +02:00
Andrés Montañez
5d03d945cb
Issue #46 - Add post-release tasks on rollback
2014-03-16 18:42:29 -03:00
Andrés Montañez
7c883d2436
Tweaks for issue #45
...
- Issue #45 - Adds "ssh_needs_tty" which appends "-t" to the ssh.
- Issue #45 - Rsync is incremental if there are previous releases.
2014-03-16 18:21:42 -03:00
Andrés Montañez
8b43a136dd
Merge pull request #45 from drmikecrowe/master
...
Adds "ssh_needs_tty" general parameter, and rsync copy option
2014-03-16 10:15:27 -07:00
Andrés Montañez
ae785225fa
Issue #43 - Exit code should indicate that something failed.
2014-03-16 13:31:36 -03:00
Andrés Montañez
fc3b7d87a5
Update SPYC Library.
2014-03-16 12:29:09 -03:00
mikec
e7d8d5ce68
Adds general.yml parameter "ssh_needs_tty" which appends "-t" to the ssh
...
command
Adds deployment parameter "rsync: { copy: yes }" which copies the prior
release then rsync's (to increase speed)
2014-01-28 21:43:43 -05:00
Andrés Montañez
5cc9c02c3e
IonCube task cleanup.
2014-01-11 16:12:01 -02:00
Andrés Montañez
b6e32215ee
Merge pull request #33 from marl-scot/ioncube
...
Added first version of the IonCube encoder extension task
2014-01-11 10:02:52 -08:00
Andrés Montañez
ff54ded172
Rollback to old yaml parser.
2014-01-11 15:39:22 -02:00
Andrés Montañez
d6e7e5b6ab
Remove SPYC library for Yamls and use Symfony/Component/Yaml instead.
2013-12-19 16:27:53 -02:00
Andrés Montañez
72a1a19518
SensioLabs Inslights. Remove unused namespaces.
2013-12-19 16:12:51 -02:00
Andrés Montañez
0f17468553
Cleanup for SensioLabs Insights.
2013-12-19 15:37:26 -02:00
Andrés Montañez
2220b2fef5
Tweak on Upgrade Command.
2013-12-19 15:23:46 -02:00
Andrés Montañez
e9045cc55e
Issue 37. Disable color output.
2013-12-19 13:07:57 -02:00
Andrés Montañez
5c51f593d0
Fix typo.
2013-12-19 12:49:02 -02:00
Andrés Montañez
c0ff700f88
Tweak upgrade command.
2013-12-17 22:09:49 -02:00
Andrés Montañez
0a8187c11d
Fix on Upgrade command.
2013-12-17 21:45:43 -02:00
Andrés Montañez
ac08d1874c
Upgrade command.
2013-12-17 21:31:04 -02:00
Andrés Montañez
f646647036
Send mail notifications.
2013-12-15 23:44:28 -02:00
Andrés Montañez
75a2463240
Tweak on compiler.
2013-12-15 17:27:26 -02:00
Andrés Montañez
eecf9bf4ea
Change Deploy Stages with Constants.
2013-12-15 17:11:53 -02:00
Andrés Montañez
d55e18b34b
Add Stage Constants.
2013-12-15 16:24:13 -02:00
Andrés Montañez
a94f550a6c
Documentation.
2013-12-15 15:27:57 -02:00
Andrés Montañez
ceee587bb0
Fix typo in GitRebase Deploy strategy.
2013-12-08 20:17:45 -02:00
Bastian Guse
935e9bf896
remove tab set space
2013-11-25 11:01:22 +01:00
Bastian Guse
899809dc33
added missing exclude Files to TarGzTask
2013-11-25 10:51:38 +01:00
Matt Lowe
f864fa7b8e
updated sample config file at end of script
2013-11-22 13:06:31 +00:00
Matt Lowe
96981b72c7
Added method to allow checking the source code once IonCube has run for
...
any un-encoded/encrypted files.
This checks against an array of file extens (used mainly to exclude
images and javascript etc.)
It also checks against an array of paths/filenames.
These 2 should maybe be combined into a single array?
If any files are found to not be encoded and havnt been excluded, then
user is prompted to confirm they wish to proced.
This is designed as a last confirmation that you have encoded all the
files that you need, and are not about to push unsecured files to a
server.
2013-11-22 13:03:37 +00:00
Matt Lowe
5fe1fdc168
adding new 'check encryption' function, to check that all
...
files have been encrypted/encoded, and prompt user to confirm
if the deploy should continue if any files are found to
not be encoded.
TEST - DO NOT USE!
2013-11-21 14:11:45 +00:00
Matt Lowe
9282e770f4
Added first version of the IonCube encoder extension task
...
This allows you to encrypt a project prior to pushing it
to a server.
2013-11-16 16:36:46 +00:00
Andrés Montañez
7f6cd952df
Issue #24 . New Deployment Strategy for not Deploying.
2013-11-13 20:13:13 -02:00
Andrés Montañez
6e1d2cb19d
Issue #28 .
2013-11-13 18:53:41 -02:00
Andrés Montañez
03b158c0a5
Abort Deployment when pre-deploy task fails. Addresses issue #29
2013-11-08 13:42:34 -02:00
Andrés Montañez
d8961674d3
Experimental, git rebase deployment strategy.
2013-11-08 11:00:07 -02:00
Andrés Montañez
c36f82ea4e
Fixes for Per Host Configuration.
2013-11-07 23:48:59 -02:00
Andrés Montañez
fdc9f4e12e
Make all Magento tasks to gues where they should run (local or remote).
2013-11-07 23:33:19 -02:00
Andrés Montañez
974304e707
Make all Symfony2 tasks to gues where they should run (local or remote).
2013-11-07 23:32:37 -02:00
Andrés Montañez
6f6cf2436a
Allows to guess where a command should be executed (remote or local) based on the stage of the task.
2013-11-07 23:32:16 -02:00
Andrés Montañez
1653b6354d
Add Magento Tasks for clearing cache. Features by Oscar Reales.
2013-11-07 23:12:30 -02:00
Andrés Montañez
0722a33137
New Feature. Deploy Strategy: rsync or tar.gz; by default it tries to guess the best strategy.
2013-11-07 21:49:15 -02:00
Andrés Montañez
4f60b89e31
Tweaks on Compiler.
2013-11-07 19:57:44 -02:00
Andrés Montañez
ee0bc27bc7
Revert "Tweaks on Compile."
...
This reverts commit 426858cb00
.
2013-11-07 19:51:48 -02:00
Andrés Montañez
426858cb00
Tweaks on Compile.
2013-11-07 19:45:52 -02:00
Andrés Montañez
a41d8d0be9
Locking releases.
2013-11-07 19:28:26 -02:00
Andrés Montañez
1e65281ca3
Rollback.
2013-11-07 19:26:32 -02:00
Andrés Montañez
09ac6a1e19
Deploy strategy is automatic.
2013-11-07 19:02:05 -02:00
Andrés Montañez
97934aef91
Fixes Issue #26
2013-11-07 12:28:21 -02:00
Andrés Montañez
f961a51c37
Big refactoring. Use of Namespaces and codestyles. PSR-0, PSR-1, PSR-2.
2013-11-06 12:44:05 -02:00
Andrés Montañez
c32bb708cf
Add license information.
2013-11-05 14:12:09 -02:00
Andrés Montañez
fe60dfbdd4
Allow to fail a task with a message via Mage_Task_ErrorWithMessageException
2013-11-02 19:14:52 -02:00
Andrés Montañez
d5ebf6e6e3
Deploy Summary info. Deploy lock: only run one instance at a time.
2013-11-02 17:10:16 -02:00
Andrés Montañez
c9759b19c0
Add List Environment command.
...
mage list environments
2013-10-13 13:30:55 -02:00
Andrés Montañez
3872fc35f0
Rewrite Symfony v2 Commands.
2013-10-13 13:15:28 -02:00
Andrés Montañez
f6df60a406
Add new Run Command method which gusses on the deployment stage to run it local or remote.
2013-10-13 13:15:17 -02:00
Andrés Montañez
a29eb1e207
Remove Symfony v1 commands.
2013-10-13 13:14:25 -02:00
Andrés Montañez
fbb2aa1a46
Issue #21
...
PHAR Compiler.
2013-10-06 16:38:37 -02:00
Andrés Montañez
cebced4c9b
Add deployment status and execute post-deployment tasks if deploy failed (only execute branch reverse and clone removal).
2013-07-07 19:41:09 -03:00
Andrés Montañez
46d00e2f08
Allow override parameters in Host configuration.
2013-07-07 19:14:32 -03:00
Andrés Montañez
80e0a283ff
Remove SCM config.
2013-07-06 20:52:39 -03:00
Andrés Montañez
b9fba3acc0
Remove SCM config.
2013-07-06 20:50:57 -03:00
Andrés Montañez
67a7f9d6fe
Tweak config and logs.
2013-07-06 20:46:29 -03:00
Andrés Montañez
39b1bf7cd5
Change SCM configs.
2013-07-06 20:46:19 -03:00
Andrés Montañez
6015b6d7c1
Change general config file.
2013-07-06 20:45:54 -03:00
Andrés Montañez
cadd36a576
Add "post-release" tasks in default environment yaml.
2013-06-17 22:41:08 -03:00
Andrés Montañez
001fa82c51
Address issue #3 . Allow install in a custom directory. By default no root user is checked.
2013-06-17 21:17:31 -03:00
Rodrigo Mendez
3ba2a037f6
Update Mage/Command/BuiltIn/Deploy.php
2013-02-08 14:38:03 -02:00
Andrés Montañez
ca12e74a6d
Change Branch on pre-deployment.
2012-12-26 13:15:37 -02:00
Andrés Montañez
c2a9bf0d62
Version 0.9.13.
2012-10-24 20:46:57 -02:00
Andrés Montañez
c49737d412
Version 0.9.12.
2012-10-24 20:41:03 -02:00
Andrés Montañez
14b36eab88
Escape " from remote commands.
2012-10-24 19:52:29 -02:00
Andrés Montañez
ad6f3cb6ee
Show how much time ago was the release.
2012-10-24 19:48:18 -02:00
Andrés Montañez
d5913cbb28
Abort deployment if some deployment tasks failed.
2012-10-24 19:13:47 -02:00
Andrés Montañez
b6a0bad25b
Delegate Releases Deletion to Rsync.
2012-10-24 19:03:12 -02:00
Andrés Montañez
d33b0b4858
Tweaked the Post-Releases and Scheduled the Release as a separate batch.
2012-10-24 18:59:34 -02:00
Andrés Montañez
87fac2a7a8
Renamed Symfony1 tasks.
2012-09-23 19:38:47 -03:00
Andrés Montañez
bf53652141
Renamed Symfony1 tasks.
2012-09-23 19:38:34 -03:00
Andrés Montañez
969caa0bbb
Allow parameter configuration on the Task configuration definition.
2012-09-23 19:33:10 -03:00
Andrés Montañez
811c83e13a
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().
2012-09-21 00:23:07 -03:00
Andrés Montañez
05b102b273
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().
2012-09-21 00:22:22 -03:00
Andrés Montañez
adb3a67924
More flexibility on releases path. Addresses Issue #7 .
2012-09-19 19:36:54 -03:00
Andrés Montañez
59cdb24087
Reloads config after SCM Update.
2012-09-19 19:26:10 -03:00
Andrés Montañez
04b194d91a
New LOCK feature.
2012-09-19 19:16:52 -03:00
Andrés Montañez
d63ca9cc04
Verify if environment is defined. Verify that rollback has release point.
2012-09-19 18:53:14 -03:00
Andrés Montañez
7d8bf35df4
Merge pull request #6 from iambrosi/compiler
...
New PHAR compiler for the library
2012-06-26 18:49:48 -07:00
Andrés Montañez
20b9a63c3b
Merge pull request #5 from iambrosi/cache-warmup-task
...
Removed cache:clear command from Warmup task
2012-06-26 18:49:24 -07:00
Ismael Ambrosi
bde912c092
Makes the file executable
2012-06-26 21:54:45 -03:00
Ismael Ambrosi
c44879dc22
New PHAR compiler for the library
2012-06-26 21:48:56 -03:00
Ismael Ambrosi
6b7d60dfb4
Removed cache:clear command from Warmup task
2012-06-26 20:38:38 -03:00
Ismael Ambrosi
50f2781649
Renamed classes to match the command
2012-06-26 20:01:11 -03:00
Javier Eguíluz
a2e88b8a4f
Added a missing PHP_EOL
2012-06-18 23:00:50 +02:00
Andrés Montañez
8874641a66
Version 0.9.10.
2012-04-01 12:46:05 -03:00
Andrés Montañez
7a87460457
New Version 0.9.8.
2012-03-31 14:41:29 -03:00
Andrés Montañez
0410c0efec
New feature: Override Release.
2012-03-31 00:33:17 -03:00
Andrés Montañez
aaa65800d0
New option, max releases.
2012-03-30 23:51:17 -03:00
Andrés Montañez
6e3e8e0768
Time information feature.
2012-03-30 20:56:07 -03:00
Andrés Montañez
b252555655
New Built-In Tasks for Symfony v1 and v2.
2012-03-27 20:13:49 -03:00
Andrs Montaez
3f0efc1a42
New version. Added getters to config and task.
...
New concept of "stage" where the task runs.
2012-02-24 13:39:40 -02:00
Andrs Montaez
de772028bb
Tweaks on file permissions for releases.
2012-02-15 19:57:29 -02:00
Andrs Montaez
6bd9d888df
Bugfix on host:port config.
2012-02-15 19:22:10 -02:00
Andrs Montaez
4863990f68
Fixes on Config parser for new Yaml library.
2012-02-15 19:18:19 -02:00
Andrs Montaez
51e7de0676
Tweaks on port definition.
...
Now port can be defined into the hostname.
2012-02-15 19:08:16 -02:00
Andrs Montaez
e42a1f1193
Update Fix.
2012-02-15 18:52:35 -02:00
Andrs Montaez
2ec4f58c77
Tweak on yaml parser. Added option for ssh port.
2012-02-15 18:45:59 -02:00
Andrs Montaez
565078a7f8
Replaces peck library for yaml parsing for SPYC library (pure php).
...
Now we don't need the pecl!
2012-02-14 20:46:34 -02:00
Andrs Montaez
949750fc1e
Fixes and tweaks on command execution.
2012-02-12 15:40:56 -02:00
Andrs Montaez
5359a7afbd
Changes configuration files extensions.
...
From "yaml" to "yml"
2012-02-12 12:43:09 -02:00
Andrs Montaez
b65632d628
SSH Tweak. Accepts all host connections. No need of interaction with ssh-client for new hosts.
2012-02-05 14:12:21 -02:00
Andrs Montaez
0c2ee3c45f
New feature. Copy application from remote source; e.g.: GIT repo.
2012-02-05 00:42:54 -02:00
Andrs Montaez
38711cbac2
Tweak on Host inclusion.
2012-02-04 16:41:09 -02:00
Andrs Montaez
776b21ce08
Feature for declaring the Hosts for reading from a URI (file, url).
2012-02-04 16:37:34 -02:00
Andrs Montaez
67d8eaaa00
Added special case for BuiltIn Releases remote commands.
2012-02-04 16:31:42 -02:00
Andrs Montaez
4015ccc984
If remote command is executed, run it inside the current release; if releases is enabled.
2012-02-04 15:48:15 -02:00
Andrs Montaez
bff9e1a8ef
Control when no action is provided.
2012-02-04 15:45:28 -02:00
Andrs Montaez
ff1efabaf4
First iteration of upgrade.
2012-01-10 18:21:31 -02:00
Andrs Montaez
f21f63456a
Add environment with releases.
2012-01-08 19:11:36 -02:00
Andrs Montaez
a04daec14e
Version command.
...
Command for showing version.
2012-01-04 00:06:03 -02:00
Andrs Montaez
9b27dd8ebe
New config settings.
2012-01-03 23:54:57 -02:00
Andrs Montaez
9cf720c602
Rollback awareness.
...
Tasks are aware if they are in rollbacks; they will be invoked only if
they implement the new interface RollbackAware.
2012-01-03 23:25:42 -02:00
Andrs Montaez
01cbd0e447
Releases Rollback. Tweaks.
2012-01-01 18:10:25 -02:00
Andrs Montaez
2e35bfe129
New configuration usage. Changes on Releases Listing.
2012-01-01 15:46:05 -02:00
Andrs Montaez
dd46e4d637
Releases List.
2012-01-01 13:36:41 -02:00
Andrs Montaez
9c03ae6bed
Changes on configuration.
...
Preparation for Post Release tasks.
2011-11-28 00:41:53 -02:00
Andrs Montaez
1349f296c0
Added the Install feature.
2011-11-28 00:18:43 -02:00
Andrs Montaez
5faad41b78
First iteration of the Releases feature.
2011-11-27 12:14:40 -02:00
Andrs Montaez
67ca7b1e21
Logging enabled. And fix on Excludes.
2011-11-27 11:05:06 -02:00
Andrs Montaez
8ed0154749
Added the possibility defining (by the user) Excludes for the
...
rsync.
2011-11-26 23:02:47 -02:00
Andrs Montaez
1693c364e3
More tweaks on the output.
2011-11-24 19:48:13 -02:00
Andrs Montaez
281ccff483
Tweak on output feedback.
2011-11-24 19:47:19 -02:00
Andrs Montaez
d138de317a
Tweaks on configs.
...
Added Init command.
2011-11-23 23:45:04 -02:00
Andrs Montaez
6d5e7ef22f
Added functionality for adding new environments.
...
Changed feedback and controls of who tasks are run.
2011-11-23 23:15:37 -02:00
Andrs Montaez
b5c8ab9c87
Added PRE and POST Deploy tasks.
2011-11-23 22:25:20 -02:00
Andrs Montaez
e5f0fe9cfa
Changes on console feedback colors. Example of User Tasks.
2011-11-23 09:38:52 -02:00
Andrs Montaez
b161220e69
New reorder of classes and configuration. New instantiation of Tasks.
2011-11-23 01:17:06 -02:00