Sto cercando di utilizzare tessuto per distribuire un progetto Django e ottengo questo errore quando ho eseguito hg pull
:hg pull da bitbucket usando il tessuto
[myusername.webfactional.com] run: hg pull
[myusername.webfactional.com] out: remote: Warning: Permanently added the RSA host key for IP address '207.223.240.181' to the list of known hosts.
[myusername.webfactional.com] out: remote: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
[myusername.webfactional.com] err: abort: no suitable response from remote hg!
Fatal error: run() encountered an error (return code 255) while executing 'hg pull'
posso eseguire altri comandi Mercurial come hg status
e hg log
solo bene dal mio file favoloso.
Ho generato una chiave SSH sul server e l'ho aggiunta al mio account bitbucket. Funziona come posso SSH ed eseguo hg pull
e funziona bene, è solo quando si utilizza tessuto.
Questo è il mio fabfile:
from __future__ import with_statement
from fabric.api import *
env.hosts = ['myusername.webfactional.com']
env.user = "myusername"
def development():
# Update files
local("hg push")
with cd("~/webapps/mysite/mysite"):
run("hg pull")
# Update database
with cd("~/webapps/mysite/mysite"):
run("python2.6 manage.py syncdb")
run("python2.6 manage.py migrate")
# Reload apache
run("~/webapps/mysite/apache2/bin/restart")
Tutte le idee?
EDIT:
ottenuto questo lavoro utilizzando https
Così, invece di
hg pull
sto usando
hg pull https://[email protected]/myusername/mysite
ho lo stesso problema qui. Questo risolve: http://lincolnloop.com/blog/2009/sep/22/easy-fabric-deployment-part-1-gitmercurial-and-ssh/ – semente