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

Nothing Pushing to Server #5

Open
mcblum opened this issue Jul 21, 2014 · 2 comments
Open

Nothing Pushing to Server #5

mcblum opened this issue Jul 21, 2014 · 2 comments

Comments

@mcblum
Copy link

mcblum commented Jul 21, 2014

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' => 'git@github.com: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.

@nevrending
Copy link

+1

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

@nevrending
Copy link

@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: git@github.com:nevrending/repos.git branch: master [] []

I'm using private repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants