-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
| Q | A |
|---|---|
| Issue Type | Question |
| Deployer Version | 3.2.1 |
| Local Machine OS | Ubuntu 15.04 |
| Remote Machine OS | Ubuntu 15.04 |
Description
GIT says the directory is given but it isn't.
The deploy target is just new and there is no such directory.
Steps to reproduce
- Complete new deployer project as suggested in your documentation.
- No directory exists
- Owner of the target directory is the correct user.
Content of deploy.php
<?php
// All Deployer recipes are based on `recipe/common.php`.
require 'recipe/symfony.php';
// Define a server for deployment.
// Let's name it "prod" and use port 22.
server( 'prod', 'the.remote', 22 )
->user( 'ME' )
->forwardAgent()// You can use identity key, ssh config, or username/password to auth on the server.
->stage( 'production' )
->env( 'deploy_path', '/srv/www/test' ); // Define the base path to deploy your project to.
// Specify the repository from which to download your project's code.
// The server needs to have git installed for this to work.
// If you're not using a forward agent, then the server has to be able to clone
// your project from this repository.
set( 'repository', `git config --get -z remote.origin.url` );Output log
$ bin/dep deploy -vvv prod
➤ Executing task deploy:prepare
↳ on [prod]
> echo $0
< bash
<
> if [ ! -d /srv/www/test ]; then mkdir -p /srv/www/test; fi
> if [ ! -L /srv/www/test/current ] && [ -d /srv/www/test/current ]; then echo true; fi
> cd /srv/www/test && if [ ! -d releases ]; then mkdir releases; fi
> cd /srv/www/test && if [ ! -d shared ]; then mkdir shared; fi
• done on [prod]
✔ Ok [1s 488ms]
➤ Executing task deploy:release
↳ on [prod]
> mkdir /srv/www/test/releases/20160417234518
> cd /srv/www/test && if [ -h release ]; then rm release; fi
> ln -s /srv/www/test/releases/20160417234518 /srv/www/test/release
• done on [prod]
✔ Ok [428ms]
➤ Executing task deploy:update_code
↳ on [prod]
> which git
< /usr/bin/git
<
> git version
< git version 1.9.1
<
> find /srv/www/test/releases -maxdepth 1 -mindepth 1 -type d
< /srv/www/test/releases/20160417233429
< /srv/www/test/releases/20160417234518
< /srv/www/test/releases/20160417233800
< /srv/www/test/releases/20160417234157
< /srv/www/test/releases/20160417233604
< /srv/www/test/releases/20160417233311
<
> readlink /srv/www/test/release
< /srv/www/test/releases/20160417234518
<
> /usr/bin/git clone --depth 1 --recursive -q git@bitbucket.org:ME/foo.git /srv/www/test/releases/20160417234518 2>&1
[RuntimeException]
fatal: destination path 'foo' already exists and is not an empty directory.