rails代码自动部署之webistrano
来源:互联网 发布:肯德基糖醋酱淘宝 编辑:程序博客网 时间:2024/05/23 23:52
webistrano 是 Capistrano的web版.
webistrano的相关资料: http://github.com/peritor/webistrano
Capistrano相关文档见 http://www.capify.org/index.php/Capistrano
在centos上使用该工程遇到的问题, 当使用该工具部署的时候,一旦代码里有中文的文件名的时候,总是提示svn: Can't convert string from 'UTF-8' to native encoding:
但是在控制台下手动svn co http://server-docnew/svn/repos/online_exhibition 没有问题. 网上给出的答案,几乎清一色的不适用.
后来这svn文档上看到下面一段话
Tip
For security reasons, the Subversion repository executes hook scripts with an empty environment—that is, no environment variables are set at all, not even $PATH or %PATH%. Because of this, a lot of administrators are baffled when their hook script runs fine by hand, but doesn't work when run by Subversion. Be sure to explicitly set environment variables in your hook and/or use absolute paths to programs.
看来是使用svn hook的时候,还需要将相应的环境变量加上才可以. 简单查阅了webistrano的源码,在
{RAILS_ROOT}/lib/webistrano/template/base.rb
#27行添加了如下代码
default_environment["LC_CTYPE"] = "zh_CN.UTF-8"
-----------------------------------------------------------
- rails代码自动部署之webistrano
- CentOS7 Nginx+mongrel+rails部署及部署(之rails篇)
- GIT 代码自动部署
- rails部署
- tomcat自动部署代码更改
- git webhook 代码自动部署
- tomcat自动部署代码脚本
- Git服务器端代码自动部署
- 初识jruby之 在tomcat上部署jruby on rails
- 持续集成之③:将代码自动部署至测试环境
- 持续集成之③:将代码自动部署至测试环境
- apache下 使用svn自动部署代码
- GIT服务器实现web代码自动部署
- git and maven 代码自动部署脚本
- GIT服务器实现web代码自动部署
- jenkins自动部署代码上线1
- jenkins自动部署代码上线2
- git hook实现代码自动部署
- Usb在CE下面就是一个串口 ????
- 敏捷开发的45个好习惯
- js 动态新增、删除行 添加事件
- 暑假的计划【写在这里,监督自己】
- 形式化方法(zz)
- rails代码自动部署之webistrano
- Eclipse 运行命令行参数大全
- 啦啦
- Eclipse无法自动编译出class文件
- 清除冗余的css代码 :http://www.cleancss.com/
- yui3dialog
- 生活
- mapgis读取图元属性错误处理
- 迷茫当中