08 2015 档案

摘要: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-... 阅读全文
posted @ 2015-08-27 17:43 冰凌花花~ 阅读(487) 评论(0) 推荐(0)
摘要:部署完的新机器报错App 12595 stderr: PG::ConnectionBad (FATAL: Peer authentication failed for user "dbuser"App 12595 stderr: ):上网查了一下,很多帖子上都在说要修改/etc/postgresq... 阅读全文
posted @ 2015-08-25 17:42 冰凌花花~ 阅读(4208) 评论(0) 推荐(0)
摘要:今天部署了新服务器发现cache目录没有权限,App 26772 stderr: Started GET "/investors" for 103.238.226.130 at 2015-08-25 11:25:47 +0800App 26772 stderr: Processing by Inve... 阅读全文
posted @ 2015-08-25 17:07 冰凌花花~ 阅读(317) 评论(0) 推荐(0)
摘要:部署新服务器之后发现,服务器上没有console命令了root@i-1lb6pxls:/home/ubuntu/campo/current# bundle exec rails cUsage: rails new APP_PATH [options]Options: -r, [--ruby=P... 阅读全文
posted @ 2015-08-25 16:39 冰凌花花~ 阅读(440) 评论(0) 推荐(0)
摘要:# gem install json -v '1.8.3'Building native extensions. This could take a while...ERROR: Error installing json: ERROR: Failed to build gem nativ... 阅读全文
posted @ 2015-08-17 19:20 冰凌花花~ 阅读(697) 评论(0) 推荐(0)
摘要:== 测试服务器是: test132 == 正式服务器是: 133, 134 == which server do you want to deploy to? (test132/133/134/83)? 134== password for 10.xxx.xx.134 is: trig... 阅读全文
posted @ 2015-08-13 17:08 冰凌花花~ 阅读(1250) 评论(1) 推荐(0)
摘要:可以保存时间和日期存一个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/... 阅读全文
posted @ 2015-08-10 17:03 冰凌花花~ 阅读(215) 评论(0) 推荐(0)
摘要:$ 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 ... 阅读全文
posted @ 2015-08-05 16:17 冰凌花花~ 阅读(436) 评论(0) 推荐(0)
摘要:https://github.com/***/***://github.com/***/***/wiki/Configuration-via-Config-FileA fast tunnel proxy that helps ... 阅读全文
posted @ 2015-08-03 15:14 冰凌花花~ 阅读(107) 评论(0) 推荐(0)