【问题标题】:Mezzanine deployment issue on nginx/sites/enablednginx/sites/enabled 上的夹层部署问题
【发布时间】:2015-08-05 20:49:44
【问题描述】:

我是 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.

【问题讨论】:

    标签: django nginx cron web-deployment mezzanine


    【解决方案1】:

    我通过 nginx 目录下的mkdir sites-enabled 解决了

    【讨论】:

      猜你喜欢
      • 2015-05-24
      • 2013-10-10
      • 1970-01-01
      • 2021-06-26
      • 2020-03-22
      • 2015-11-22
      • 2020-02-17
      • 2016-09-04
      • 1970-01-01
      相关资源
      最近更新 更多