Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployer Next 🚀 #1092

Merged
merged 95 commits into from
Mar 26, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
92a4c20
Refactor server+environment to host
antonmedv Mar 12, 2017
df21fa1
Refactor runLocally function
antonmedv Mar 12, 2017
ace2889
Better tty
antonmedv Mar 12, 2017
f5b0dbe
Delete builder
antonmedv Mar 12, 2017
beb15a4
Add FileLoader
antonmedv Mar 12, 2017
077070f
Delete BootstrapByConfigFile
antonmedv Mar 12, 2017
4325980
Allow overriding ssh multiplexing
antonmedv Mar 12, 2017
1db456a
Remove unreachable code
antonmedv Mar 12, 2017
6edb6d7
Refactor ParallelExecutor to use hosts
antonmedv Mar 13, 2017
4a1c12b
Apply fixes from StyleCI
antonmedv Mar 13, 2017
f04f2db
Merge pull request #1098 from deployphp/analysis-8LPb3n
antonmedv Mar 13, 2017
14a8f8f
Add use_atomic_symlink option
antonmedv Mar 13, 2017
64aca18
Update CHANGELOG.md
antonmedv Mar 13, 2017
20d213c
Update CHANGELOG.md
antonmedv Mar 13, 2017
31fd582
Move deployer/phar-update to suggest section
antonmedv Mar 13, 2017
c3659d2
Add docblock, remove unused use
antonmedv Mar 13, 2017
2e9a795
Fix docblock
antonmedv Mar 13, 2017
54fe1ea
Add useful error message
antonmedv Mar 13, 2017
81ba8e3
Add facts
antonmedv Mar 14, 2017
34c985e
Remove DotArray syntax
antonmedv Mar 14, 2017
ba4416c
Add hosts lists, inventory, proxy
antonmedv Mar 14, 2017
66b40c7
Better errors
antonmedv Mar 14, 2017
35c3024
Apply fixes from StyleCI
antonmedv Mar 14, 2017
11fa9ea
Merge pull request #1105 from deployphp/analysis-qonayb
antonmedv Mar 15, 2017
67ecaeb
Add stare and roles helpers
antonmedv Mar 15, 2017
a4beca7
Upload/download functions
antonmedv Mar 15, 2017
d118d24
Merge remote-tracking branch 'origin/next' into next
antonmedv Mar 15, 2017
c4b025a
Add docblock
antonmedv Mar 15, 2017
b5e79ac
Refactor rsync
antonmedv Mar 16, 2017
f8a13c1
Composer update
antonmedv Mar 16, 2017
5745a71
Start refactoring tests
antonmedv Mar 16, 2017
30298cf
Tests for src
antonmedv Mar 16, 2017
c162cb9
Add a few tests
antonmedv Mar 16, 2017
d4fca69
Refactor local exec
antonmedv Mar 16, 2017
dafc57c
Update Symfony min version to 2.7
antonmedv Mar 16, 2017
9e7ffe7
Refactor recipe tests
antonmedv Mar 16, 2017
982221b
Move test app
antonmedv Mar 16, 2017
4cd0c8e
Fix tests
antonmedv Mar 16, 2017
c28292e
Fix .styleci.yml
antonmedv Mar 16, 2017
1669ee3
Set http_user for travis
antonmedv Mar 16, 2017
bf7028c
Rename TestCase to DepCase
antonmedv Mar 16, 2017
fbe9560
Add git user/email
antonmedv Mar 16, 2017
51f6bf6
Add acl on .travis.yml
antonmedv Mar 16, 2017
0e918fb
Add host ranges
antonmedv Mar 17, 2017
0abec76
Expand hosts in host func
antonmedv Mar 17, 2017
d6ba93d
Add more tests
antonmedv Mar 17, 2017
4668d2f
Add FileLoaderTest
antonmedv Mar 18, 2017
8e2c025
Add method tests
antonmedv Mar 18, 2017
eadea2f
Refactor tasks
antonmedv Mar 18, 2017
be23ad3
Introduce support helpers
antonmedv Mar 18, 2017
3f52da4
Add support tests
antonmedv Mar 18, 2017
78789d2
Implement stage, roles, hostnames checks
antonmedv Mar 19, 2017
ed2fb08
Refactor IO catching
antonmedv Mar 19, 2017
ecbe80b
Add shouldBePerformed tests
antonmedv Mar 19, 2017
3bbf987
Add ssh command
antonmedv Mar 19, 2017
da84ec3
Refactor parallel execution
antonmedv Mar 19, 2017
7345377
Add new --limit option
antonmedv Mar 19, 2017
2add71f
Add parallel test
antonmedv Mar 19, 2017
20bde90
Remove elfet/pure
antonmedv Mar 19, 2017
6afdc38
Composer update
antonmedv Mar 19, 2017
6a6d237
Move build bin
antonmedv Mar 19, 2017
db37dcb
Allow vars in deploy_path
antonmedv Mar 20, 2017
2e0b2e2
Add host aliases
antonmedv Mar 20, 2017
d81c6b5
Fix issue
antonmedv Mar 20, 2017
dd54f5c
Fix issue
antonmedv Mar 20, 2017
51048d9
Fix newline in parallel mode
antonmedv Mar 21, 2017
66d2a23
Refactor test recipes location
antonmedv Mar 21, 2017
254cf26
Rename onFailure to fail
antonmedv Mar 21, 2017
231b81d
Rename FIXTURES to DEPLOYER_FIXTURES
antonmedv Mar 21, 2017
cc4bac3
Rename onFailure to fail
antonmedv Mar 22, 2017
7b6af03
Better error handling in parallel mode
antonmedv Mar 22, 2017
24135b7
Apply fixes from StyleCI
antonmedv Mar 22, 2017
c65834d
Merge pull request #1122 from deployphp/analysis-8K3pGj
antonmedv Mar 22, 2017
0743ae3
Fix docblock
antonmedv Mar 22, 2017
194c4fb
Better config current
antonmedv Mar 22, 2017
10552e4
Apply fixes from StyleCI
antonmedv Mar 22, 2017
5d4c561
Merge pull request #1123 from deployphp/analysis-zObAel
antonmedv Mar 22, 2017
3b6e581
Fix doc
antonmedv Mar 22, 2017
3d0382d
Merge remote-tracking branch 'origin/next' into next
antonmedv Mar 22, 2017
eb0e53e
Add on func
antonmedv Mar 23, 2017
55ce776
Localhost extend Host
antonmedv Mar 23, 2017
e5d499a
Add logger
antonmedv Mar 23, 2017
efcb6eb
Better error logging
antonmedv Mar 23, 2017
9d79f9e
Add persistent config
antonmedv Mar 24, 2017
c6c3f49
Add storage test
antonmedv Mar 25, 2017
d30a100
Apply fixes from StyleCI
antonmedv Mar 25, 2017
efc33b9
Merge pull request #1127 from deployphp/analysis-8bLE5a
antonmedv Mar 25, 2017
81509d3
Add --hosts and --roles
antonmedv Mar 25, 2017
d67a96b
Update CHANGELOG.md
antonmedv Mar 25, 2017
7321763
Add deployer/phar-update as dependency
antonmedv Mar 25, 2017
a8502fe
Add warning message
antonmedv Mar 25, 2017
0f69260
Fix typo
antonmedv Mar 25, 2017
7ad4d5f
Use dep self-update in message
antonmedv Mar 25, 2017
5671d7a
Update UPGRADE.md
antonmedv Mar 25, 2017
54878eb
Remove io from on
antonmedv Mar 26, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add use_atomic_symlink option
  • Loading branch information
antonmedv committed Mar 13, 2017
commit 14a8f8f9c4ebbc7da45c2b6b7c3c00a51b563ccf
15 changes: 7 additions & 8 deletions recipe/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@
set('clear_paths', []); // Relative path from deploy_path
set('clear_use_sudo', false); // Using sudo in clean commands?

set('use_relative_symlink', true);
set('use_relative_symlink', function () {
return test('[[ "$(man ln)" =~ "--relative" ]]');
});
set('use_atomic_symlink', function () {
return test('[[ "$(man mv)" =~ "--no-target-directory" ]]');
});

set('composer_action', 'install');
set('composer_options', '{{composer_action}} --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader');
Expand Down Expand Up @@ -103,13 +108,7 @@
});

set('bin/symlink', function () {
if (get('use_relative_symlink')) {
// Check if target system supports relative symlink.
if (run('if [[ "$(man ln)" =~ "--relative" ]]; then echo "true"; fi')->toBool()) {
return 'ln -nfs --relative';
}
}
return 'ln -nfs';
return get('use_relative_symlink') ? 'ln -nfs --relative' : 'ln -nfs';
});

/**
Expand Down
2 changes: 1 addition & 1 deletion recipe/deploy/symlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

desc('Creating symlink to release');
task('deploy:symlink', function () {
if (run('if [[ "$(man mv)" =~ "--no-target-directory" ]]; then echo "true"; fi')->toBool()) {
if (get('use_atomic_symlink')) {
run("mv -T {{deploy_path}}/release {{deploy_path}}/current");
} else {
// Atomic symlink does not supported.
Expand Down