- 博客(11)
- 资源 (1)
- 收藏
- 关注
原创 实现照片墙的效果
https://github.com/shiralwz/image-page今天在github上传了一个小的照片墙的页码源代码,主要是照片墙的功能,当鼠标移动到哪个照片的时候,照片自动放大并上浮。
2015-09-28 17:59:50 2484
原创 github page + jekyllrb 搭建新博客
github page 操作步骤:https://pages.github.com/(1)Create a repository Head over to GitHub and create a new repository namedusername.github.io, where username is your username (or organizatio
2015-09-23 15:33:42 741
原创 ruby on rails新项目不使用数据库,配置过程记录
查询了大神的经验贴http://stackoverflow.com/questions/19078044/disable-activerecord-for-rails-4http://stackoverflow.com/questions/821251/how-to-configure-ruby-on-rails-with-no-database其中点赞最多的也是我用的方法
2015-09-18 20:44:50 706
原创 与本应用相关的nginx配置文件放在当前部署文件夹下
(1)首先在current文件夹下新建服务有关的nginx配置文件nginx.confupstream news_server { server unix:/tmp/unicorn.news.sock fail_timeout=0;}server { listen 8888; access_log /opt/app/ruby/news/current/log/nginx.
2015-09-18 20:24:59 1850
原创 第一次部署服务器,服务器获取不到bitbucket上的代码
先在服务器上 ssh bitbucket.org点yes链接一下,才能在服务器部署,或者在服务器上链接一下代码地址 git ls-remote [email protected]:xxx/xxx.git master,原因是bitbucket不在服务器的knowhosts里
2015-09-18 20:10:57 1120
原创 capistrano2和3生成Capfile语句的区别
https://github.com/capistrano/capistranohttps://github.com/capistrano/capistrano/wikihttps://github.com/capistrano/capistrano/wiki/2.x-from-the-beginning(1)使用capistrano2,要在Gemfile里指定版本
2015-09-18 19:56:34 592
原创 ruby应用里添加zepto.min.js但是无法使用里面的方法
今天尝试做移动端自适应的页码,添加了zepto.min.js,写完对应的代码后重启服务,这时候发现zepto.min.js方法无法识别,不能直接在application.js里调用。原因是ruby on rails 的服务默认添加了jquery.js,占用了$符号,在application里使用$调用,默认就调用的jquery里的方法,所以如果想在application.j
2015-09-18 19:44:44 809
原创 elasticsearch的探索之路
今天调试一个现有项目报错,发现自己还没装elasticsearch[Faraday::ConnectionFailed] Connection refused - connect(2) {:host=>"localhost", :port=>"9200", :protocol=>"http"}Connection refused - connect(2)此时发现自己还没装elastics
2015-09-11 11:43:57 1516
原创 一个rails项目连多个mongo数据库
一个rails项目如何连多个mongo数据库呢,答案在这里http://stackoverflow.com/questions/16400458/connecting-to-two-databases-mongoid(1)首先在config/mongoid.yml里配置一下development: sessions: default: database: o
2015-09-10 16:47:19 625
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人