0
運行命令我想改變目錄,當我運行cd命令(「對myApp」)我得到:我想改變目錄,並在面料
No hosts found. Please specify (single) host string for connection:
我有這樣的代碼:
def example():
local('sudo apt-get install python-dev libmysqlclient-dev')
local('pip install MySQL-python')
local('sudo apt-get install apache2')
with cd('myApp'):
run('pwd')
run('python manage.py syncdb --no-initial-data')
run('python manage.py migrate')
print(green('DONE.'))