deeployer icon indicating copy to clipboard operation
deeployer copied to clipboard

Nothing Pushing to Server

Open mcblum opened this issue 10 years ago • 2 comments

Hello. For the life of me I can't figure out why everything seems to be working but new code isn't pushed to the production server. Config is as follows:

'projects' => array(
        array(
            'ssh_connection' => 'production',

            'git_repository' => '[email protected]:mcblum/app.nationalmachine.co.git',

            'git_remote' => 'origin',

            'git_branch' => 'master',

            'remote_directory' => '~/www/app',

            'composer_update' => true,

            'composer_optimize_autoload' => true,

            'composer_extra_options' => '',

            'composer_timeout' => 60 * 5, // 5 minutes

            'artisan_migrate' => false,

            'post_deploy_commands' => array(
                'zsh send-deployment-emails.sh',
            ),
        ),
    ),

and

    'default' => 'production',

    'connections' => array(

        'production' => array(
            'host'      => 'app.nationalmachine.co:(port we're using)',
            'username'  => 'national',
            'key'       => '~/.ssh/id_rsa.pub',
            'keyphrase' => '',
            'root'      => '~/www/app',
        ),

    ),

Any help would be greatly appreciated. Thank for you taking the time to develop tools for all to use!

ETA: Composer is up to date, response code is 200 when I look at the webhook in git. ETA2: I also tried changing 'git_repository' => to https://github.com/mcblum/app.nationalmachine.co, 'username' to root, and the host to the ip address rather than the domain name.

mcblum avatar Jul 21 '14 17:07 mcblum

+1

Log said: production.INFO: Deeployer - Github: No repositories found. Please check the repository and branch names. [] []

nevrending avatar Apr 29 '15 10:04 nevrending

@antonioribeiro

I removed the if

foreach($this->config->get('projects') as $project)
        {
            $project = $this->checkAttributes($project);


                $this->message(sprintf(
                                        'deploying found repository: %s branch: %s',
                                        $project['git_repository'], 
                                        $project['git_branch']
                                     )
                                );

                $this->executeAll($project);

                $found++;

        }

Console Output

[2015-04-29 17:44:34] production.INFO: Deeployer - Github: POST received for "https://github.com/nevrending/repos" branch "master" [] []
[2015-04-29 17:44:34] production.INFO: Deeployer - Github: deploying found repository: [email protected]:nevrending/repos.git branch: master [] []

I'm using private repo

nevrending avatar Apr 29 '15 10:04 nevrending