Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Missing documentation #5

@Speedy1991

Description

@Speedy1991

I just tried around with your fabdeploit and got this error:

fab -u git -H localhost deploy
[localhost] Executing task 'deploy'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 757, in main
    *args, **kwargs
  File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 386, in execute
    multiprocessing
  File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 276, in _execute
    return task.run(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 173, in run
    return self.wrapped(*args, **kwargs)
  File "/home/speedy/git/django_deploy/fabfile.py", line 43, in deploy
    commit = git.release()
  File "/usr/local/lib/python2.7/dist-packages/fabdeploit/git.py", line 292, in release
    self.create_release_commit(message=message)
  File "/usr/local/lib/python2.7/dist-packages/fabdeploit/git.py", line 226, in create_release_commit
    commit = repo.heads[self.release_branch].commit
  File "/usr/local/lib/python2.7/dist-packages/git/util.py", line 893, in __getitem__
    raise IndexError("No item found with id %r" % (self._prefix + index))
IndexError: No item found with id 'master'

Steps to reproduce:

  • use the django example from docs
  • setup a simple django app
  • git init
  • git checkout -b master
  • fab -u <user> -H <host> deploy

Solution:
The master/production branch must be commited (inital commit is enough) before running fab. This is not really an error in my eyes, but some documentation would be nice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions