nginx/sites/enabled 上的夹层部署问题
Mezzanine deployment issue on nginx/sites/enabled
我是 Django 和 Mezzanine 的新手,我正在尝试将我的测试项目部署到远程服务器。这是面料脚本:
FABRIC = {
"DEPLOY_TOOL": "git", # Deploy with "git", "hg", or "rsync"
"SSH_USER": "user", # SSH username for host deploying to
"SSH_PASS": "pass", # SSH password (consider key-based authentication)
"HOSTS": "000.000.000.000", # List of hosts to deploy to (eg, first host)
"DOMAINS": ALLOWED_HOSTS, # Domains for public site
"VIRTUALENV_HOME": "/home/user/testproj", # Absolute remote path for virtualenvs
"PROJECT_NAME": "testproj", # Unique identifier for project
"REPO_URL": "git@bitbucket.org:user/testproj.git", # Git or Mercurial remote repo URL for the project
"LIVE_HOSTNAME": "example.com", # Host for public site.
"REQUIREMENTS_PATH": "requirements.txt", # Project's pip requirements
"GUNICORN_PORT": 8000, # Port gunicorn will listen on
"LOCALE": "en_US.UTF-8", # Should end with ".UTF-8"
"DB_PASS": "pass", # Live database password
"ADMIN_PASS": "user", # Live admin user password
"SECRET_KEY": SECRET_KEY,
"NEVERCACHE_KEY": NEVERCACHE_KEY,
}
然后 fab all
在 shell 中开始安装。在安装过程中出现以下错误。想不通,怎么了:(
------
deploy
------
[000.000.000.000] put: <file obj> -> /etc/cron.d/testproj
$ chown root /etc/cron.d/testproj ->
$ chmod 600 /etc/cron.d/testproj ->
[000.000.000.000] put: <file obj> -> /etc/nginx/sites-enabled/testproj.conf
Fatal error: put() encountered an exception while uploading '<StringIO.StringIO instance at 0x7faa5ffa55a8>'
Underlying exception:
'ascii' codec can't decode byte 0xe2 in position 203: ordinal not in range(128)
Aborting.
Disconnecting from 000.000.000.000... done.
我在nginx目录下mkdir sites-enabled
解决了
我是 Django 和 Mezzanine 的新手,我正在尝试将我的测试项目部署到远程服务器。这是面料脚本:
FABRIC = {
"DEPLOY_TOOL": "git", # Deploy with "git", "hg", or "rsync"
"SSH_USER": "user", # SSH username for host deploying to
"SSH_PASS": "pass", # SSH password (consider key-based authentication)
"HOSTS": "000.000.000.000", # List of hosts to deploy to (eg, first host)
"DOMAINS": ALLOWED_HOSTS, # Domains for public site
"VIRTUALENV_HOME": "/home/user/testproj", # Absolute remote path for virtualenvs
"PROJECT_NAME": "testproj", # Unique identifier for project
"REPO_URL": "git@bitbucket.org:user/testproj.git", # Git or Mercurial remote repo URL for the project
"LIVE_HOSTNAME": "example.com", # Host for public site.
"REQUIREMENTS_PATH": "requirements.txt", # Project's pip requirements
"GUNICORN_PORT": 8000, # Port gunicorn will listen on
"LOCALE": "en_US.UTF-8", # Should end with ".UTF-8"
"DB_PASS": "pass", # Live database password
"ADMIN_PASS": "user", # Live admin user password
"SECRET_KEY": SECRET_KEY,
"NEVERCACHE_KEY": NEVERCACHE_KEY,
}
然后 fab all
在 shell 中开始安装。在安装过程中出现以下错误。想不通,怎么了:(
------
deploy
------
[000.000.000.000] put: <file obj> -> /etc/cron.d/testproj
$ chown root /etc/cron.d/testproj ->
$ chmod 600 /etc/cron.d/testproj ->
[000.000.000.000] put: <file obj> -> /etc/nginx/sites-enabled/testproj.conf
Fatal error: put() encountered an exception while uploading '<StringIO.StringIO instance at 0x7faa5ffa55a8>'
Underlying exception:
'ascii' codec can't decode byte 0xe2 in position 203: ordinal not in range(128)
Aborting.
Disconnecting from 000.000.000.000... done.
我在nginx目录下mkdir sites-enabled
解决了