摘要: 查询了大神的经验贴http://stackoverflow.com/questions/19078044/disable-activerecord-for-rails-4http://stackoverflow.com/questions/821251/how-to-configure-ruby-o... 阅读全文
posted @ 2015-09-18 20:42 冰凌花花~ 阅读(367) 评论(0) 推荐(0) 编辑
摘要: (1)首先在current文件夹下新建服务有关的nginx配置文件nginx.confupstream news_server { server unix:/tmp/unicorn.news.sock fail_timeout=0;}server { listen 8888; access_l... 阅读全文
posted @ 2015-09-18 20:29 冰凌花花~ 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 先在服务器上 ssh bitbucket.org点yes链接一下,才能在服务器部署或者在服务器上链接一下代码地址 git ls-remote git@bitbucket.org:xxx/xxx.git master,原因是bitbucket不在服务器的knowhosts里 阅读全文
posted @ 2015-09-18 20:11 冰凌花花~ 阅读(331) 评论(0) 推荐(0) 编辑
摘要: https://github.com/capistrano/capistranohttps://github.com/capistrano/capistrano/wikihttps://github.com/capistrano/capistrano/wiki/2.x-from-the-beginn... 阅读全文
posted @ 2015-09-18 19:57 冰凌花花~ 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 今天尝试做移动端自适应的页码,添加了zepto.min.js,写完对应的代码后重启服务,这时候发现zepto.min.js方法无法识别,不能直接在application.js里调用。原因是ruby on rails 的服务默认添加了jquery.js,占用了$符号,在application里使用$调... 阅读全文
posted @ 2015-09-18 19:42 冰凌花花~ 阅读(188) 评论(0) 推荐(0) 编辑