准备安装ruby on rails,在网上搜了下,步骤都类似,但实际安装过程中却碰到很多问题。下面详细说下: 说明下,文章是按照我尝试的过程描述的。但最终是靠 运行 railsinstaller一键式安装包才成功的(第五段),因此前面的部分大家可以看看,但不用去尝试。 一、首先要安装ruby 因为在 ...
# find / -name gitlab.yml /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml /var/opt/gitlab/gitlab-rails/etc/gitlab.yml # find / -name gitla... ...
分类:
其他好文 时间:
2016-05-05 11:05:54
阅读次数:
4425
Git使用入门 Linux 内核代码及许多著名的项目(如Aniroid Eclipes,KDE,QT,Ruby on Rails等)都使用了Linux 之父Linus编写的Git进行源代码管理。Linux 以一个文件系统专家和内核设计者的视角对 Git进行了设计。其独特的设计让Git拥有非凡的性能和 ...
分类:
移动开发 时间:
2016-05-03 12:33:33
阅读次数:
149
假设有一个user模型,那么,users_path对应index的action,不需要参数,而对于user_path(),后面需要一个参数作为id,例如user_path(@user),表示@user对应的页面,具体含义与get/patch/delete有关 而edit_user_path(@use ...
分类:
其他好文 时间:
2016-05-02 23:03:28
阅读次数:
390
devise、cancan和rolify这三个组件结合,可以建立完整而强大的用户权限模型。 devise介绍,负责用户注册、登录、退出、找回密码等操作。细节参考devise on github cancan介绍, 负责角色建立、对角色授权、在页面中根据授权是否显示元素,以及模型中超出授权时抛出异常。 ...
分类:
其他好文 时间:
2016-04-30 06:29:24
阅读次数:
440
1.Start a container running Consul
2.Start a container running Registrator
3. Start a web service and let Registrator automatically register it on Consul
4. Find the IP address and port of the service from Consul UI, and start using the service...
分类:
其他好文 时间:
2016-04-29 19:44:16
阅读次数:
263
控制器简单介绍
一个简单的控制器中的例子
Ruby代码
class SimpleController
def index
end
end
可以看出,我们自己建立的控制器默认继承ApplicationController类。那ApplicationController类到底有什么作用呢
Ruby代码
...
分类:
其他好文 时间:
2016-04-29 15:51:55
阅读次数:
203
1.Start a container running Consul
2.Start a container running Registrator
3. Start a web service and let Registrator automatically register it on Consul
4. Find the IP address and port of the service from Consul UI, and start using the service...
分类:
其他好文 时间:
2016-04-26 21:45:09
阅读次数:
190
his one is tailor made for the Basix users among you. If you've been itching to try out Ruby and/or Rails, if the Terminal is somewhat new to you, you ...
分类:
系统相关 时间:
2016-04-12 00:05:14
阅读次数:
405
LNMP 代表的就是:Linux系统下Nginx+MySQL+PHP这种网站服务器架构。本次实践需求:实践centos6.5编译安装 LNMP生产环境 架构 web生产环境 使用 xcache 优化php
作为 Web 服务器:相比 Apache,Nginx 使用更少的资源,支持更多的并发连接,体现更高的效率。 作为负载均衡服务器:Nginx既可以在内部直接支持Rails和PHP,也可以支持作为...
分类:
数据库 时间:
2016-04-02 07:05:55
阅读次数:
352