这是我的剧本:
#!/usr/bin/env python
#-*- coding: utf-8 -*-
from fabric2 import Connection
c = Connection('nanic.hopto.org')
with c.cd('/home/bussiere/Stack/Event/'):
c.run('git pull origin master')
c = Connection('nanic.hopto.org')
with c.cd('/home/bussiere/Stack/Event/'):
c.run('python3 manage.py runserver 0.0.0.0:8004')
c = Connection('nanic.hopto.org')
with c.cd('/home/bussiere/Stack/Data/'):
c.run('python3 manage.py runserver 0.0.0.0:8005')
这是错误:
来自gitlab.com:bussiere/Event *分支主站-> FETCH_HEAD已经是最新的。追溯(最近一次通话):
在第12行中输入文件“ fabRelaunch.py” c.run('python3 manage.py runserver 0.0.0.0:8004')文件“”,运行文件中的第2行 “ /usr/local/lib/python3.5/dist-packages/fabric2/connection.py”,行 30,在打开 返回方法(自身,* args,** kwargs)文件“ /usr/local/lib/python3.5/dist-packages/fabric2/connection.py”,行 582,在运行中 返回self._run(运行程序,命令,** kwargs)文件“ /usr/local/lib/python3.5/dist-packages/invoke/context.py”,第101行, 在_run returnRunner.run(命令,** kwargs)文件“ /usr/local/lib/python3.5/dist-packages/invoke/runners.py”,第271行, 运行中 返回self._run_body(命令,** kwargs)文件“ /usr/local/lib/python3.5/dist-packages/invoke/runners.py”,第404行, 在_run_body中 引发UnexpectedExit(result)invoke.exceptions.UnexpectedExit:遇到错误的命令退出代码!命令:'cd / home / bussiere / Stack / Event / && python3 manage.py 运行服务器0.0.0.0:8004'
退出代码:1
标准输出:已打印
Stderr:已经打印
有人知道为什么在尝试启动django时出现错误吗?
谢谢