Comments (13)
Hi!
Your stacktrace shows that something is wrong, but not essentially with local recipe. Stacktrace mentions that problem originates in line 116 in local recipe. This is weird because the line there is only:
$git = env('local_bin/git');
which should in turn evaluate to what's on line 16-18:
env('local_bin/git', function () {
return runLocally('which git')->toString();
});
None of which should ever cause problems.
My rough guess would be... Update your deployer and recipes to newest versions and check if that helps.
from recipes.
Hi Johnny,
I use
deployer/deployer v3.3.0 Deployment Tool
deployphp/recipes 3.1.0 3rd party deployer recipes
in my 'vendor/deployphp/recipes/recipes/local.php' file line 116 looks so
115 // If {{local_deploy_path}}/releases/{$releases[1]} has a failed git clone, is empty, shallow etc, git would throw error and give up. So we're forcing it to act without reference in this situation
116 runLocally("git clone $at --recursive -q $repository {{local_release_path}} 2>&1");
from recipes.
Update them to newest versions - shoud fix most of the problems :)
2016-09-19 9:49 GMT+02:00 Philipp Fröbel [email protected]:
Hi Johnny,
I use
deployer/deployer v3.3.0 Deployment Tool
deployphp/recipes 3.1.0 3rd party deployer recipesin my 'vendor/deployphp/recipes/recipes/local.php' file line 116 looks so
115 // If {{local_deploy_path}}/releases/{$releases[1]} has a failed git clone, is empty, shallow etc, git would throw error and give up. So we're forcing it to act without reference in this situation
116 runLocally("git clone $at --recursive -q $repository {{local_release_path}} 2>&1");—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKMVFaFEP1-qkBSl72p3DFJlUQ61Rod2ks5qrj6UgaJpZM4J9vBD
.
Pozdrawiam,
Hubert Kowalski
from recipes.
hi,
which version do you mean?
I use this version
deployer/deployer v3.3.0 Deployment Tool
deployphp/recipes 3.1.0 3rd party deployer recipes
these are the newest version on github and packagist.org. Or you mean the dev version?
from recipes.
Ah, sorry. No need to go to dev versions then.
Technically it should work as-is. Most probably the command itself fails.
Can You try running said clone command by hand?
2016-09-19 12:47 GMT+02:00 Philipp Fröbel [email protected]:
hi,
which version do you mean?
I use this version
deployer/deployer v3.3.0 Deployment Tool
deployphp/recipes 3.1.0 3rd party deployer recipesthese are the newest version on github and packagist.org. Or you mean the
dev version?—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKMVFUYQ37KFPniSYDA5qMm3hEsWGdX3ks5qrmhIgaJpZM4J9vBD
.
Pozdrawiam,
Hubert Kowalski
from recipes.
i think its a problem with the server ietration. for the last server the script try to run the command from previous server and the git clone fail because the target already exists.
↳ on [api1]
Run locally: git clone -b master --recursive -q [email protected]:... /tmp/my_app/releases/20160915104759.1 2>&1
• done on [api1]
↳ on [api2]
Run locally: git clone -b master --recursive -q [email protected]:... /tmp/my_app/releases/20160915104759.1 2>&1
from recipes.
hmmm... interesting... if you're not running in parallel, teh maaaaybe do
local:update_code only on api1?
2016-09-19 13:13 GMT+02:00 Philipp Fröbel [email protected]:
i think its a problem with the server ietration. for the last server the
script try to run the command from previous server and the git clone fail
because the target already exists.↳ on [api1]
Run locally: git clone -b master --recursive -q [email protected]:... /tmp/my_app/releases/20160915104759.1 2>&1
• done on [api1]
↳ on [api2]
Run locally: git clone -b master --recursive -q [email protected]:... /tmp/my_app/releases/20160915104759.1 2>&1—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKMVFYBTaoybFoj9TkwOn9NcpnA66FN_ks5qrm5bgaJpZM4J9vBD
.
Pozdrawiam,
Hubert Kowalski
from recipes.
how i can disable parallel deploy?
from recipes.
ok i run the deploy only with api1 and the local:update_code runs once
from recipes.
it's usually not enabled :) you'd enable it by passing "--parallel" to
command line :)
so... try to do task update_code onlyOn api1
2016-09-19 13:41 GMT+02:00 Philipp Fröbel [email protected]:
how i can disable parallel deploy?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKMVFVL9GEepULX0PAX6IlaVauIy5kauks5qrnT_gaJpZM4J9vBD
.
Pozdrawiam,
Hubert Kowalski
from recipes.
ii try it but update_code runs on all servers and the same error comes
task('update', ['local:update_code'])
->onlyOn(['api1'])
->desc('update code');
task('deploy', [
'local:prepare',
'deploy:prepare',
'local:release',
'deploy:release',
'rsync:warmup',
// 'local:update_code',
// 'local:vendors',
'rsync',
'local:symlink',
'deploy:symlink',
'cleanup',
'local:cleanup'
])->desc('Deploy your project');
after('rsync:warmup', 'update');
➤ Executing task local:update_code
↳ on [api1]
Run locally: git version
> git version 2.1.4
Run locally: ls /tmp/api.mail.freenet.de/releases
> 20160919142322
20160919142322.1
20160919142445
20160919142445.1
Run locally: readlink /tmp/api.mail.freenet.de/release
> /tmp/api.mail.freenet.de/releases/20160919142445.1
Run locally: git clone -b master --depth 1 --recursive -q [email protected]:frnde/api.mail.freenet.de-composer.git /tmp/api.mail.freenet.de/releases/20160919142445.1 2>&1
• done on [api1]
↳ on [api2]
Run locally: git version
> git version 2.1.4
Run locally: ls /tmp/api.mail.freenet.de/releases
> 20160919142322
20160919142322.1
20160919142445
20160919142445.1
Run locally: readlink /tmp/api.mail.freenet.de/release
> /tmp/api.mail.freenet.de/releases/20160919142445.1
Run locally: git clone -b master --depth 1 --recursive -q [email protected]:frnde/api.mail.freenet.de-composer.git /tmp/api.mail.freenet.de/releases/20160919142445.1 2>&1
> fatal: destination path '/tmp/api.mail.freenet.de/releases/20160919142445.1' already exists and is not an empty directory.
from recipes.
Hi! Does the problem persist in newest tagged version?
from recipes.
I think no :)
from recipes.
Related Issues (20)
- Email recipe HOT 4
- [Error] Call to undefined method Symfony\Component\Console\Helper\QuestionHelper::getInputStream() HOT 5
- What about merging recipes and deployer? HOT 7
- Issue with recipe/sentry HOT 3
- [slack] No branch or commit name HOT 2
- add npm build to npm recipe
- Rsync filterperdir wrong variable HOT 2
- RocketChat Integration HOT 2
- Sentry recipe fails when there's no .git directory HOT 2
- MS Teams notification integration HOT 1
- Website recipes documentation is not aligned with repository docs
- Problems configuring cachetool
- Sentry Release/Deploy fails due to server response HOT 4
- Segmentation Fault / Slack Recipe / PHP 7.3
- Problem resolving CacheTool binary
- Catch-22: Deployer installs composer dependencies, but deployer/recipes is a dependency HOT 3
- Zulip recipe HOT 1
- releaseIsGitDirectory() needs to return 0 if it's not a git repo
- Rollbar notify do not work with --hosts option
- New cachetool release (5.X) breaks cachetool recipe expectations for PHP 7.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recipes.