本月博客排行
-
第1名
wy_19921005 -
第2名
mft8899 -
第3名
java-007 - Anmin
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
benladeng5225 - wy_19921005
- vipbooks
- 青否云后端云
- kaizi1992
- e_e
- tanling8334
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- wallimn
- lemonhandsome
- jh108020
- ganxueyun
- Xeden
- xyuma
- zhanjia
- wangchen.ily
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- ajinn
- xpenxpen
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- jveqi
- javashop
- lzyfn123
- sunj
- yeluowuhen
- lerf
- silverend
- chenqisdfx
- xiaoxinye
- flashsing123
- bosschen
- lyndon.lin
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
最新文章列表
在Debian上部署Ruby On Rails应用(续)
写在前面:
其实这个续应该和前面那个部署的文章互换一下顺序……哈哈,前一篇参见《在Debian上配置Nginx+Thin服务器跑ROR》。开始正文吧
首先我们需要把源代码传到Debian服务器上,这里可以采用各种办法,我是在vps上搭建了一个svn,这样比较省事,直接checkout就OK了~以后需要更新的话直接update。当然可以采用capistrano自动部署~
进到svn检出的项 ...
moonshine部署rails项目
moonshine部署项目——rails 3
1. 在项目目录下安装插件:
$ rails plugin install git://github.com/railsmachine/moonshine.git
2. 生成配置文件
$ rails generate moonshine
会生成config/moonshine.yml
3. 在Gemfile中加入:
gem 'shadow_ ...
Rails3利用whenever gem调度发送邮件
1. Install
$ gem install whenever
Or with Bundler in your Gemfile.
gem 'whenever', :require => false
2. Getting Started
$ cd /my/rails/app
$ wheneverize .
This will create an init ...
GitHub - 基于Rails的Git库托管
Git
是一个分布式的版本控制系统,最初由Linus Torvalds编写,用作Linux内核代码的管理。在推出后,Git在其它项目中也取得了很大成功,尤其是在Ruby社区中。目前,包括Rubinius
和Merb
在内的很多知名项目都使用了Git。Git同样可以被诸如Capistrano
和Vlad the Deployer
这样的部署工具所使用。
如前所述,作为一个分布式的版本控制 ...
Build Your Own Botnet with EC2 and Capistrano to Load Test Your Server Cluster
Build Your Own Botnet with EC2 and Capistrano to Load Test Your Server Cluster before Launch
Tuesday, July 21, 2009
By Steven Talcott Smith
0 Comments
Different types of w ...
[转载] Twitter如何在数千服务器快速部署代码?
【IT168 评论】Twitter如何在数千台服务器上快速部署代码?答案是:用BT,也就是你我应该都很熟悉的BitTorrent。
对于网站经营者、创业者来说,扩展性的问题是在网站流量成长过程中势必会面对的问题,如何建立一个具有扩展性的架构(scalable architecture)便是在规划网站事业过程中不可或缺的专业知识。
如果服务本身的功能性符合用户需求,却因为架构、程序性能、数据库性 ...
heroku You may want to specify the full path to the keyfile
For those who are trying out Heroku for the first time, and have not set up their Mac for keypair authentication, here is what you need to do in order to generate ssh public keys.
If you keep seeing th ...
<轉>進階學習 Ruby on Rails
原文地址--> http://blog.xdite.net/?p=1227
从 Blog.XDite.net
作者:xdite
上一篇
提及了一些入門必練的基礎。而現在要繼續寫的是進階篇。大致
分為� ...
Capistrano 遇到的各种问题
1. 不能在window下使用
比较神奇。。。。 看了官方文档半天,也没说不能啊。可惜试了才知道。
cap deploy:setup, :check 都没问题,到了 :update的时候,出错。 明明git配置是对的,非说错误。
google了半天,看到了有个哥们跟我的问题类似,他的SVN配置明明是对的,结果出现各种神奇错误。后来这哥们留言:“经过N久的摸索,我发现了错误所在:我用的是WIND ...
Installing Ruby on Rails on Red Hat Enterprise Linux 4
Determine what Ruby RPMs are installed:
$ rpm -qa | egrep '(ruby)|(irb)'
ruby-libs-1.8.1-7.EL4.2
Uninstall Ruby RPMs:
$ sudo rpm -e ruby-libs-1.8.1-7.EL4.2
Install Ruby from source:
$ wget ftp: ...
优化的nginx配置
http://brainspl.at/articles/2007/01/03/new-nginx-conf-with-optimizations
# user and group to run as
user ez ez;
# number of nginx workers
worker_processes 6;
# pid of nginx master proce ...
转载:Rails 3 Reading Material
Rails 3 is going to bring a lot of new stuff to the table.
Wouldn’t hurt to organize some reading material in categorized and
chronological order. So here goes whatever I scavenged so far. Leave ...
capistrano配置
服务器文件结构
myapp/releases
myapp/current -> releases/20081019001122
myapp/shared
deploy任务分类
deploy:update_code
deploy:symlink_shared
deploy:symlink
deploy:r ...
Integrating Flickr into your rails website
In this post I’m going to show you how I created the little Flickr
stream you can see running down the right hand edge of this site.
Step 1: Get a Flickr API
key
Visit this page
and follow the in ...
Five-Minute Rails Application Deployment
Ready to deploy your Rails application to Rails Machine? Follow these steps and you’ll have it running in no time! Feel free to utilize Rails Machine’s Ask Us Anything Support and contact us with any q ...
gem备份
gem list|awk '{printf "gem i %s -y\n",$1}' > gems_installer.sh
gem i actionmailer -y
gem i actionpack -y
gem i actionwebservice -y
gem i activerecord -y
gem i activerecord-oracle-a ...
restful_authentication的site_key问题
好久没来写东西了,最近项目太忙,也懒的写啥。不过今天花了两个小时解决了一个很无聊的问题,记一下。
restful_authentication是采用随机生成的site_key来加密密码,我们项目在开发过程中经常采用svn加capistrano来修改加部署,这样的话,每次部署后,为了图省事,我们一般用capistrano自动rake auth:gen:site_key,而此时生成的site_key已 ...
Rails Cron 一个Rails的定时执行插件介绍
定时任务,Linux下cron准确的实现这个功能。通常,在Rails开发中,我们也遇到类似的需要,例如,我自己就在开发过程中,有这样一个需要:
有一个专业逻辑的报表查询,表结果如下:
CREATE TABLE `production`.`datalogs` (
`id` int(11) NOT NULL auto_increment,
`ts` datetime d ...