浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 551 552 553 554 555 556 557 558 559 ··· 630 下一页

2010年12月21日

摘要: 2010-08-02Rails gem 打包css javascript 提升网站性能 jammit 简介文章分类:Ruby编程推荐一个gem jammit 官方hub 安装 Ruby代码 geminstalljammitRuby代码 #environment.rbconfig.gem"jammit"Rails2 需要修改config/routes.rb添加路径,Rails 可不用 Ruby代码... 阅读全文
posted @ 2010-12-21 19:33 lexus 阅读(529) 评论(0) 推荐(0)

摘要: require "yaml"$config = YAML.load_file(File.join('config', 'database.yml')) 阅读全文
posted @ 2010-12-21 14:15 lexus 阅读(170) 评论(0) 推荐(0)

摘要: rails3 使用nifty文章分类:Ruby编程1. 在Gemfile中添加: gem 'nifty-generators'2. rails g nifty:layout3. rails g nifty:scaffold survey name:stringin railscast you'll see the blue background style scaffold file is don... 阅读全文
posted @ 2010-12-21 13:40 lexus 阅读(416) 评论(0) 推荐(0)

摘要: https://gist.github.com/111597使用capistrano同步本地和远程的mysqlTop 5 uses for Capistrano02 Oct 2008 | By Alex Young | capistrano programming ruby --This is a technical post about Capistrano, a tool that make... 阅读全文
posted @ 2010-12-21 12:09 lexus 阅读(425) 评论(0) 推荐(0)

摘要: http://ruby-toolbox.com/ 阅读全文
posted @ 2010-12-21 11:25 lexus 阅读(146) 评论(0) 推荐(0)

摘要: https://github.com/javan/wheneverwhenever enhanced cron on rails way初始 Getting started生成cron代码 ThewhenevercommandThis will simply show you your schedule.rb file converted to cron syntax. It does not r... 阅读全文
posted @ 2010-12-21 11:06 lexus 阅读(1010) 评论(2) 推荐(0)

摘要: Ruby中String类的类方法chomp的语法2007-04-25 09:06String.chomp ----------------------------------------------------------- String#chomp str.chomp(separator=$/) = new_str -------------------------------------... 阅读全文
posted @ 2010-12-21 10:27 lexus 阅读(6193) 评论(0) 推荐(0)

2010年12月20日

摘要: capistrano-helpers requires Capistrano 2#gem 'capsum'gem 'capistrano'#gem "capistrano-ext"#gem "capistrano-helpers"#gem "capistrano_colors"当使用helper这个gem时会缺少依赖,报如上错 阅读全文
posted @ 2010-12-20 22:38 lexus 阅读(136) 评论(0) 推荐(0)

摘要: 生成远程git仓库mlzboy@mlzboy:~$ mkdir -p git/b2c2.gitmlzboy@mlzboy:~$ cd git/b2c2.git/mlzboy@mlzboy:~/git/b2c2.git$ git init --bareInitialized empty Git repository in /home/mlzboy/git/b2c2.git/生成ssh公钥将生产服务器... 阅读全文
posted @ 2010-12-20 22:15 lexus 阅读(1530) 评论(0) 推荐(0)

摘要: TAGSgitgit 使用初探by Kv Yang on 五月 27th, 2010追求好的版本控制, 让开发变得更加简单是学习git的一个理由, 且git不会在每个目录下都生成.svn文件.分布式版本部署,强大的分支功能让我觉得git很有魅力.使用git也会对我目前熟悉的开发工具产生些震荡, 要慢慢从windows下的开发转向linux的开发.一 git常用命令:设置git默认文本编辑器设置解决... 阅读全文
posted @ 2010-12-20 21:04 lexus 阅读(1760) 评论(0) 推荐(0)

摘要: passenger with nginx tutorialhttp://www.modrails.com/documentation/Users%20guide%20Nginx.html#capistrano3. Redeploying (restarting the Ruby on Rails application)Deploying a new version of a Ruby on Ra... 阅读全文
posted @ 2010-12-20 20:11 lexus 阅读(350) 评论(0) 推荐(0)

摘要: 这个项目也很不错,云部署手工复制ssh public key 容易出错,参看http://github.com/guides/providing-your-ssh-keyssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAlthhA10EbwaQueahZM5aFOC4/FL5TtBkPdajKFwZecwRqz94nEg2lFfYIq+aGfH0/3rV+NqZsDVINmE... 阅读全文
posted @ 2010-12-20 17:37 lexus 阅读(328) 评论(0) 推荐(0)

摘要: geilibuy: Repositories Your Repository has been created Need help getting started? Read on… Already an expert? Jump to the activity page or view more setup options. 1. Install Git Git can be installed... 阅读全文
posted @ 2010-12-20 16:55 lexus 阅读(373) 评论(0) 推荐(0)

摘要: 使用git remote -v列出所有远程的git仓库删除远程仓库mlzboy@mlzboy-MacBook ~/my/b2c2 $ git remote --helpmlzboy@mlzboy-MacBook ~/my/b2c2 $ git remote rm beanstalkmlzboy@mlzboy-MacBook ~/my/b2c2 $ git remote -vtest git@mlz... 阅读全文
posted @ 2010-12-20 13:49 lexus 阅读(375) 评论(0) 推荐(0)

摘要: 认识了硬链接究竟是怎么一回事,理解硬链接的两个限制就容易多了。1、不允许给目录创建硬链接;2、只有在同一文件系统中的文件之间才能创建链接。篇幅关系,不再赘述。cd -P aa进入真实目录符号连接的层数过多的问题ln -s 使用绝对路径 cp -p tempdir2/tempdir1/file teempdir3这样就把整个子目录结构( tempdir2/tempdir1/file)都复制过去了.子... 阅读全文
posted @ 2010-12-20 13:34 lexus 阅读(283) 评论(0) 推荐(0)

摘要: 认识了硬链接究竟是怎么一回事,理解硬链接的两个限制就容易多了。1、不允许给目录创建硬链接;2、只有在同一文件系统中的文件之间才能创建链接。篇幅关系,不再赘述。cd -P aa进入真实目录符号连接的层数过多的问题ln -s 使用绝对路径cp -p tempdir2/tempdir1/file teempdir3这样就把整个子目录结构( tempdir2/tempdir1/file)都复制过去了.子目... 阅读全文
posted @ 2010-12-20 11:15 lexus 阅读(166) 评论(0) 推荐(0)

摘要: http://www.36ria.com/2217之前还有一个jshare (p) 阅读全文
posted @ 2010-12-20 10:59 lexus 阅读(258) 评论(0) 推荐(0)

摘要: 认识了硬链接究竟是怎么一回事,理解硬链接的两个限制就容易多了。1、不允许给目录创建硬链接;2、只有在同一文件系统中的文件之间才能创建链接。篇幅关系,不再赘述。cd -P aa进入真实目录 阅读全文
posted @ 2010-12-20 10:58 lexus 阅读(161) 评论(0) 推荐(0)

摘要: http://blog.itech-sense.com/content/?p=37 使用Capistrano部署apache+mongrel cluster 收藏 这篇也很重要对 capistrano中的一些方法进行了重写 http://blog.csdn.net/pwlazy/archive/2007/11/23/1899731.aspx 相当的有意义,关于soft link http:... 阅读全文
posted @ 2010-12-20 01:45 lexus 阅读(214) 评论(0) 推荐(0)

摘要: http://wiki.ocssolutions.com/Step-by-step_setup_using_Capistrano_2.0_and_Mongrelhttp://tech.wangyaodi.com/2010/07/30/study-notes-passenger-capistrano-nginx-rails-2-3-4-ubuntu-9-04-10-steps/http://gaut... 阅读全文
posted @ 2010-12-20 01:38 lexus 阅读(688) 评论(0) 推荐(0)

上一页 1 ··· 551 552 553 554 555 556 557 558 559 ··· 630 下一页