`
zdx3578
  • 浏览: 96148 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

webistrano 4 安装

 
阅读更多

webistrano 的安装

 



yum install mysql-server

yum install mysql mysql-devel mysql-server

if  yum can install 1.8.7  then : yum install          ruby ruby-devel ruby-irb ruby-mysql ruby-rdoc ruby-ri

source install ruby   ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p352.zip

unzip   ruby-1.8.7-p352.zip

cd   ruby-1.8.7-p352

./configure --prefix=/opt/ruby1.8.7

make

make install



wget  http://production.cf.rubygems.org/rubygems/rubygems-1.8.11.zip

unzip rubygems-1.8.11.zip

cd rubygems-1.8.11

ruby setup.rb




gem install     addressable   version

[root@webistrano ~]#  gem install addressable   builder   capistrano   crazycode-cap-recipes   fastthread   highline   i18n   json   memcache-client   mocha   mysql   net-scp   net-sftp   net-ssh   net-ssh-gateway      passenger   rack   rake   ruby-ole   spreadsheet   tzinfo

也可以到http://rubygems.org   手动下载每个gem包再安装

rails(不需要下载安装 webistrano默认带rails 235) rest-open-uri

gem 一直网络错误无法安装,写了下载gem的脚本,已经增加下载依赖,直接安装gem的功能。  wgetgems.rb   增加指定版本功能  ./wgetgem3.rb  rake-0.8.7  rack-1.0.1 ......


分享到:
评论
6 楼 zdx3578 2014-03-19  
zdx3578 写道
      config = instantiate_configuration
#      config.load 'deploy'
      set_up_config(config)
"lib/webistrano/deployer.rb" 298L, 9142C 已写入 

错误是: /opt/soft/gitwebistrano/webistrano/lib/webistrano/deployer.rb:290:in `list_tasks'
5 楼 zdx3578 2014-03-19  
      config = instantiate_configuration
#      config.load 'deploy'
      set_up_config(config)
"lib/webistrano/deployer.rb" 298L, 9142C 已写入 
4 楼 zdx3578 2014-03-18  
        task_already_defined = tasks.key?(name)
        #if all_methods.any? { |m| m.to_sym == name } && !task_already_defined
        #  thing = namespaces.key?(name) ? "namespace" : "method"
        #  raise ArgumentError, "defining a task named `#{name}' would shadow an existing #{thing} with that name"
        #end
"vendor/bundler/ruby/1.8/gems/capistrano-2.6.0/lib/capistrano/configuration/namespaces.rb" 197L, 6574C 已写入
3 楼 zdx3578 2014-03-18  
https://github.com/peritor/webistrano/issues/31
https://github.com/kosmas58/webistrano/commit/5b7ec4b8c9de9143972b08b347500a9c3e9e77e7
2 楼 zdx3578 2014-03-17  
Bundle install
然后通过阅读webistrano的README文件进行安装
RAILS_ENV=productionrake db:create 创建相关的数据库
RAILS_ENV=productionrake db:migrate 创建相关的表结构
操作完成后,通过rubyscript/server –d –p 3000 –e prodution来启动webistrano



http://warcraft3.blog.51cto.com/6514883/1328321
1 楼 zdx3578 2014-03-17  
最近安装了一下 webistrano buundle install 一直错误,ruby是通过rvm安装的187 193等版本,都不行,
用http://ygongzi.blog.51cto.com/4215340/1027041 这里的方法安装ok,bundle 成功

yum install ruby ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc  rubygems
yum install git -y            ###为了直接拉下来webistrano的文件
yum install mysql.x86_64 mysql-devel.x86_64 mysql-server.x86_64 -y   ##安装mysql

gem install bundler -v 1.0.22 

git clone https://github.com/peritor/webistrano.git

bundler install

相关推荐

Global site tag (gtag.js) - Google Analytics