Issue with deploy #151

Closed
bclinkinbeard opened this Issue Apr 8, 2013 · 2 comments

4 participants

I must be missing something because deploying to github is not working. What format is the repository value supposed to be in? Current settings are

deploy:
type: github
repository: git@github.com:bclinkinbeard/bclinkinbeard.github.com.git
branch: master

but I just get

fatal: 'bclinkinbeard.github.com' does not appear to be a git repository
fatal: Could not read from remote repository.

I also tried with repository: bclinkinbeard.github.com

try use “https” method in your config's repository, perhaps like this: https://github.com/bclinkinbeard/bclinkinbeard.github.com.git

or, if it still falid try to modify the github.js in the /lib/plugins/deployer/, just as #150 said:

function(next){
  var commands = [
    ['add', '-A'],
    ['commit', '-m', 'Site updated: ' + new Date()],
    ['push', 'origin', config.branch, '--force']
  ];

  async.forEachSeries(commands, function(item, next){
    command('git', item, next);
  }, next);
}

the different with the original definition is line 6, original is

['push', 'github', config.branch, '--force']

change the second parameter to your remote repo's name.

I found this works:

repository: "https://github.com/myaccount/myaccount.github.io.git"

Going this route will require you to enter your username/password. I haven't tackled key-based deployments yet as I just wanted to get it running.

I'd submit a pull request to clarify the documentation, but it doesn't appear to be in the repo.

@tommy351 tommy351 added the question label Apr 1, 2014
@tommy351 tommy351 closed this Apr 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment