在C:\DevKit\octopress目录下 执行如下指令 rake preview 打开浏览器 http://localhost:4000/ 重新生成 rake generate 部署 rake deploy 可以直接将 C:\DevKit\octopress_deploy 目录下文件上传到gi... ...
分类:
其他好文 时间:
2016-07-05 22:36:22
阅读次数:
189
http://www.zhihu.com/question/30432152 一句话概括就是:依赖管理和任务执行。像Ruby里面的bundler+rake,像iOS中的cocoapods,像node中的npm+grunt.通俗的讲就是:你的项目需要哪些第三方库,它帮你把它们都下载下来,并且编译好放到 ...
分类:
其他好文 时间:
2016-06-30 19:52:36
阅读次数:
155
通常迁移内容写在change方法中 ,但是有些迁移内容不能自动通过执行rake:rollback回滚, 所以在迁移文件里要使用 reversible 方法,告诉rails如何回滚例如下面 class ExampleMigration < ActiveRecord::Migration def cha ...
分类:
其他好文 时间:
2016-06-17 17:19:58
阅读次数:
424
使用Gitlab一键安装包安装Gitlab非常简单, 同样的备份恢复与迁移也非常简单. 使用一条命令即可创建完整的Gitlab备份: gitlab-rake gitlab:backup:create使用以上命令会在/var/opt/gitlab/backups目录下创建一个名称类似为13935131 ...
分类:
其他好文 时间:
2016-05-13 21:55:51
阅读次数:
283
命令行 rake db:***** script/generate model task name:string priority:integer script/generate migration add_description_to_task description:string script/ ...
分类:
其他好文 时间:
2016-03-24 10:07:10
阅读次数:
154
在使用Objective-C wrapper for sambaclient的时候,rake 出现编译错误。操作步骤:1、下载2、解压kxsmb3、进入kxsmb目录4、执行 rake错误提示包括 : need autoconf 2.53 or later to build samba from GIT ...解决方法:curl -OL http://ftpmirror.gnu.org/autoc...
分类:
其他好文 时间:
2016-03-06 11:30:00
阅读次数:
303
转自:http://henter.me/post/ruby-rvm-gem-rake-bundle-rails.html Ruby 这个就不用多说了 RVM 用于帮你安装Ruby环境,帮你管理多个Ruby环境,帮你管理你开发的每个Ruby应用使用机器上哪个Ruby环境。Ruby环境不仅仅是Ruby本
分类:
其他好文 时间:
2016-01-28 21:12:50
阅读次数:
235
Gem配置问题2016/01/04把代码push到服务器上执行,rake, rails c 都给我报错/home/bcz/.rvm/gems/ruby-1.9.3-p551/gems/ailties-3.2.11/lib/rails/railtie/configuration.rb:85:in `m...
分类:
其他好文 时间:
2016-01-04 19:56:40
阅读次数:
237
实际应用设置之前要在个人用户设置中增加key(为了备份ssh的项目)备份进入ditlab容器cd /home/git/gitlabbundle exec rake gitlab:backup:create RAILS_ENV=productioncd /home/git/gitlabbundle e...
分类:
其他好文 时间:
2015-12-13 17:09:15
阅读次数:
268
bundle install rake-10.4.2
分类:
其他好文 时间:
2015-09-23 18:57:39
阅读次数:
146