grantcss.com grantcss.com

GRANTCSS.COM

Grant's World

由于经常开发 Rails 应用,也常常部署到 Ubuntu 服务器上,所以我就整理了 一篇比较完整的部署配置步骤,供大家以及自己以后参考。 环境系统说明 Ruby 2.3.1 Rails 4.2.6 Ubuntu 14.04 64 位 配置步骤 1. 系统增加 deploy 用户 以 root …

http://www.grantcss.com/

WEBSITE DETAILS
SEO
PAGES
SIMILAR SITES

TRAFFIC RANK FOR GRANTCSS.COM

TODAY'S RATING

>1,000,000

TRAFFIC RANK - AVERAGE PER MONTH

BEST MONTH

December

AVERAGE PER DAY Of THE WEEK

HIGHEST TRAFFIC ON

Saturday

TRAFFIC BY CITY

CUSTOMER REVIEWS

Average Rating: 3.9 out of 5 with 11 reviews
5 star
3
4 star
6
3 star
1
2 star
0
1 star
1

Hey there! Start your review of grantcss.com

AVERAGE USER RATING

Write a Review

WEBSITE PREVIEW

Desktop Preview Tablet Preview Mobile Preview

LOAD TIME

0.8 seconds

FAVICON PREVIEW

  • grantcss.com

    16x16

CONTACTS AT GRANTCSS.COM

chen su su

susu chen

nan tong s●●●●●●●●●●huan qu ch

nan ●●●● shi , JS, 226000

cn

0513●●●●6110
0513●●●●6110
ku●●●@hotmail.com

View this contact

susu chen

susu chen

nan tong s●●●●●●●●●●huan qu ch

nan ●●●● shi , JS, 226000

cn

0513●●●●6110
0513●●●●6110
ku●●●@hotmail.com

View this contact

susu chen

susu chen

nan tong s●●●●●●●●●●huan qu ch

nan ●●●● shi , JS, 226000

cn

0513●●●●6110
0513●●●●6110
ku●●●@hotmail.com

View this contact

Login

TO VIEW CONTACTS

Remove Contacts

FOR PRIVACY ISSUES

DOMAIN REGISTRATION INFORMATION

REGISTERED
2014 February 16
UPDATED
2014 February 16
EXPIRATION
EXPIRED REGISTER THIS DOMAIN

BUY YOUR DOMAIN

Network Solutions®

DOMAIN AGE

  • 11

    YEARS

  • 10

    MONTHS

  • 0

    DAYS

NAME SERVERS

1
ns5.myhostadmin.net
2
ns6.myhostadmin.net

REGISTRAR

CHENGDU WEST DIMENSION DIGITAL TECHNOLOGY CO., LTD.

CHENGDU WEST DIMENSION DIGITAL TECHNOLOGY CO., LTD.

WHOIS : whois.west263.com

REFERRED : http://www.west263.com

CONTENT

SCORE

6.2

PAGE TITLE
Grant's World | grantcss.com Reviews
<META>
DESCRIPTION
由于经常开发 Rails 应用,也常常部署到 Ubuntu 服务器上,所以我就整理了 一篇比较完整的部署配置步骤,供大家以及自己以后参考。 环境系统说明 Ruby 2.3.1 Rails 4.2.6 Ubuntu 14.04 64 位 配置步骤 1. 系统增加 deploy 用户 以 root …
<META>
KEYWORDS
1 grant's world
2 ruby coder
3 文章归档
4 环境系统说明
5 配置步骤
6 sudo adduser deploy
7 visudo
8 sudo all
9 nopasswd all
10 切换到 deploy 用户
CONTENT
Page content here
KEYWORDS ON
PAGE
grant's world,ruby coder,文章归档,环境系统说明,配置步骤,sudo adduser deploy,visudo,sudo all,nopasswd all,切换到 deploy 用户,su deploy,mkdir ssh,vim ssh/authorized keys,粘贴你的 ssh 公钥,然后保存,ruby 安装的时候会需要用到一些系统的依赖库,所以提前装好,sudo apt get update,4 安装 ruby,echo,bashrc,exec,shell,local
SERVER
nginx/1.12.2
CONTENT-TYPE
utf-8
GOOGLE PREVIEW

Grant's World | grantcss.com Reviews

https://grantcss.com

由于经常开发 Rails 应用,也常常部署到 Ubuntu 服务器上,所以我就整理了 一篇比较完整的部署配置步骤,供大家以及自己以后参考。 环境系统说明 Ruby 2.3.1 Rails 4.2.6 Ubuntu 14.04 64 位 配置步骤 1. 系统增加 deploy 用户 以 root …

INTERNAL PAGES

grantcss.com grantcss.com
1

什么是 Service 对象? 什么时候使用? - Grant's World

http://www.grantcss.com/blog/2015/05/02/about-rails-service

经常在网上看到有人在讨论 Rails Service 对象模型。 但是在 Rails 的 guide 里面并未提及这个对象的定义。 所以看起来貌似很模糊,到底什 么是 service 对象呢 什么时候要用呢. 简单来说,service 里面一般都是 包含不止一个 model。 例如 我们包含一个 User 的 Model,这个 User 包含密码。 如果用户忘记密码,我们需要 发送一封 email 让他重置密码。 在上面的例子里面,把 service 放到 MVC 世界解释如下. Model (User) - 一个用户有一个密码。 View - 忘记密码页面的 form 和成功失败状态的显示. Controller - form 提交之后,实例化忘记密码 service 发送邮件并且显示处理的结果。 Service - 用户的一个行为,发送邮件并且告诉 controller 处理结果。 有下面几种方法是容易把 service 的逻辑封装在 Rails 应用里面了。 臃肿的 Model,紧身的 Controller 因为这个原则迫使很多人把 service 逻辑放在 model 里面。

2

Ruby 2.2 中的新方法 - Grant's World

http://www.grantcss.com/blog/2015/02/07/new-methods-in-ruby-2-dot-2

Ruby 2.2 中的新方法. 目前围绕 Ruby 2.2 来说,讨论的最多的是垃圾回收的更新。 GC 目前会清除掉 symbol,并且 在减少暂停时间的方面有算法的改善。 让我们看看 2.2 里面增加什么新玩意。 习惯上,标准输入 standard input 的文件描述符是 0,标准输出 standard output 是 1, 标准错误 standard error 是 2。 从结果可以看出,1 和 2 分别出现了 4 次,3 出现了 2 次。 Float#next float, Float#prev float. 这2个方法是用来发现ULP(unit of least precision)的值是非常方便的,但实际开发中有可能很少会用到, 但是知道的话确实对于更好。 Filebirthtime, File#birthtime, File: Stat#birthtime. Hash支持字符串 冒号作为 key 了. 在 Ruby 2.2 之前,如果定义以字符串作为 key 的 Hash 的时候,是不可以写成这样的。 Posted by Grant Chen.

3

About Me - Grant's World

http://www.grantcss.com/about

Github: https:/ github.com/grantchen. GitCafe: https:/ gitcafe.com/grant. Twitter: https:/ twitter.com/GrantCss. X67;rantcss1982@gmail.com. 如何在 Rails 中使用 PostgresSQL 表分区. 如何 Docker 化你的 Rails 应用. 配置 sidekiq 使用 upstart 启动和停止,并且使用 monit 监视.

4

Rails 开发中经常犯的错误 - Grant's World

http://www.grantcss.com/blog/2015/03/01/most-common-mistakes-on-rails-development

1 - 在 Model 以外的地方做数据库查询. 上面的查询我们可以将 controller 里面的查询 通过 model 的 scope 来代替。 By last login at. By last login at. 记住如果使用 where, order, joins, includes, group, having 等查询的话,记得放 model 里面去。 2 - 在 View 里有业务逻辑处理. 上面这段代码看起来没有什么错误,但是看上去 Ruby 代码使得 HTML 可读性不是很好,你应该 停止做这样的事情,这个同样会使得代码复用性不够高,而且不方便独立测试。 改完之后会发现 html 变得简单,可读性变好,helper 里面的代码可以被其他地方使用了, 测试也更加方便了。 另外解决这个问题的方法是使用 decorators,具体使用可以参考 draper 这个 Gem。 这个代码主要不好的地方是你需要花很多时间去理解里面的业务逻辑, r topics 方法名什么意思 tr 变量干嘛的 从第一眼里面无法 猜测到作者的企图。 一些关于某个 question 的 topic 集合。

5

配置 sidekiq 使用 upstart 启动和停止,并且使用 monit 监视 - Grant's World

http://www.grantcss.com/blog/2015/05/29/config-sidekiq-with-upstart-and-monit

配置 Sidekiq 使用 Upstart 启动和停止,并且使用 Monit 监视. Etc/init/sidekiq.conf - Sidekiq config. This example config should work with Ubuntu 12.04 . It. Allows you to manage multiple Sidekiq instances with. Upstart, Ubuntus native service management tool. See workers.conf for how to manage all Sidekiq instances at once. Save this config as /etc/init/sidekiq.conf then mange sidekiq with:. Or use the service command:. Sudo service sidekiq {start,stop,restart,status}. This starts upon bootup and stops on shutdown.

UPGRADE TO PREMIUM TO VIEW 7 MORE

TOTAL PAGES IN THIS WEBSITE

12

SOCIAL ENGAGEMENT



OTHER SITES

grantcrossman.com grantcrossman.com

My Site

This is my site description. A website created by GoDaddy’s Website Builder.

grantcrowell.com grantcrowell.com

Welcome grantcrowell.com - BlueHost.com

Web Hosting - courtesy of www.bluehost.com.

grantcrusor.com grantcrusor.com

grantcrusor.com

Welcome to: grantcrusor.com. This Web page is parked for FREE, courtesy of GoDaddy.com. Is this your domain? Let's turn it into a website! Would you like to buy this. THE domain at THE price. Visit GoDaddy.com for the best values on. Restrictions apply. See website for details.

grantcs.com grantcs.com

grantcs.com - Registered at Namecheap.com

This domain is registered at Namecheap. This domain was recently registered at Namecheap. Please check back later! This domain is registered at Namecheap. This domain was recently registered at Namecheap. Please check back later! The Sponsored Listings displayed above are served automatically by a third party. Neither Parkingcrew nor the domain owner maintain any relationship with the advertisers.

grantcss.com grantcss.com

Grant's World

如何部署 Rails 到 Ubuntu 14.04 服务器. 由于经常开发 Rails 应用,也常常部署到 Ubuntu 服务器上,所以我就整理了 一篇比较完整的部署配置步骤,供大家以及自己以后参考。 Ruby 2.3.1. Rails 4.2.6. Ubuntu 14.04 64 位. 1 系统增加 deploy 用户. 以 root 用户身份登入 ubuntu 系统,然后执行下面的命令增加具有 sudo 权限的 deploy 用户。 Sudo adduser deploy sudo. 将 sudo 用户改成运行 sudo 无需密码. 2 把你的 SSH 公钥加入到 authorized keys. 3 安装 Ruby 需要的依赖库. Sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev. Libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev. Vim /etc/postg...

grantcthomas.blogspot.com grantcthomas.blogspot.com

Redirecting

Youre about to be redirected. The blog that used to be here is now at http:/ blog.grantthomasonline.com/. Do you wish to be redirected? This blog is not hosted by Blogger and has not been checked for spam, viruses and other forms of malware.

grantcthornton.com grantcthornton.com

UNDER CONSTRUCTION

Is currently UNDER CONSTRUCTION. This Web site is currently under construction. Please be sure to visit this Web site again in the near future! This is your current default homepage; it has been setup with your new account. To update this Under Construction page, please replace your index.html file.

grantcudas.us grantcudas.us

2011-2012 Photo Gallery

The Grant Photo Gallery features photos of District, City, and Campus sports and events for the 2011-2012 school year courtesy of Grant staff and parents.

grantcullen.com grantcullen.com

OneDegree.coach

grantculp.com grantculp.com

My Site

This is my site description. A website created by GoDaddy’s Website Builder.