- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 分析rails日志,计算响应率
chmod +x analyse_log copy_log (1)拷贝脚本到本地脚本内容如下:#!/usr/bin/env bashLOG_PATH=/opt/logsLOCAL_LOG_PATH=~/Documents/logs/8-15PROJECTS=(m-cms-for-tudou-tv m-cms-for-tv)if [[ $1 == "-
2015-08-27 17:49:11 984
原创 PostgreSQL新手上路PG::ConnectionBad (FATAL: Peer authentication failed
PostgreSQL新手上路PG::ConnectionBad (FATAL: Peer authentication failed
2015-08-25 17:57:15 1806
原创 cache目录没有操作权限
今天部署新服务器发现了cache文件夹木有权限读写App 26772 stderr: Started GET "/investors" for 103.238.226.130 at 2015-08-25 11:25:47 +0800App 26772 stderr: Processing by InvestorsController#index as HTMLApp 26772 stder
2015-08-25 17:07:31 4749
原创 找不到rails console命令
部署新服务器后发现,没有rails console命令了root@i-1lb6pxls:/home/ubuntu/campo/current# bundle exec rails cUsage: rails new APP_PATH [options]Options: -r, [--ruby=PATH]
2015-08-25 16:54:23 1968
原创 gem install json失败
# gem install json -v '1.8.3'Building native extensions. This could take a while...ERROR: Error installing json: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.r
2015-08-17 19:20:58 4148 2
原创 部署服务的时候报错 ArgumentError: invalid byte sequence in US-ASCII
== 测试服务器是: test132 == 正式服务器是: 133, 134 == which server do you want to deploy to? (test132/133/134/83)? 134== password for 10.100.27.134 is: triggering start callbacks for `deploy' * execut
2015-08-13 17:09:06 2444
原创 同时可以修改时间和日期的datetime_select and 有关时间的转换
存一个8月5号,总会自动保存成5月8,于是做了限制s = "08/20/2015 3:31 PM" dt = DateTime.strptime s, "%m/%d/%Y %H:%M %p" 参考文档:http://ruby-doc.org/stdlib-2.2.2/libdoc/date/rdoc /Date.html#method-c-strptime http://r
2015-08-10 17:05:45 951
原创 There is a version mismatch between the spring client and the server
$ RAILS_ENV=production bundle exec rails cThere is a version mismatch between the spring client and the server.You should restart the server and make sure to use the same version.CLIENT: 1.3.6, SE
2015-08-05 16:20:16 1295
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人