Rails 构建全能型 Rails 开发环境。Vagrant+virtaulbox ,使用 Windows 的开发者有福了。

xds2000 · September 06, 2012 · Last by hawkflying replied at November 01, 2012 · 8102 hits

https://github.com/amaia/rails-starter-box

使用这个直接就可以创建 Rails 开发环境,还等啥: host $ git clone https://github.com/amaia/rails-starter-box.git host $ cd rails-starter-box host $ git submodule init host $ git submodule update host $ vagrant up

有试过 windows 吗?我在 windows 上用 vagrant,各种困境

@fsword 没有试验过 windows,还需要时间验证。需要有人帮忙实际测试一下,有问题大家再一起研究一下。

正在 win 下构建当中 ps:项目的 README 文件写错了,clone回来没cd到项目路径就运行git submodule update --init是不对的

@ywjno 看楼主的命令清单。

VirtualBox Version 必须是 4.1.16,下载的虚拟机是用 16 构建的。不然需要自己手工重新构建。

#4 楼 @xds2000 哦。。。我还以为这个项目是你做的,就想告诉你 README 文件写错了。。。

https://github.com/SaitoWu/fireup << 跟我的 fireup 是一个目的。

8 Floor has deleted

@huacnlee 召唤~ 乱回帖的猎头帐号是不是应该 ban 掉? http://ruby-china.org/gina

#9 楼 @fredwu 外出,才看到

#9 楼 @fredwu 已经下手干掉了,这个猎头太过分了

@fredwu 好久没看到你在群里发言了,是什么情况?

@fredwu 在袋鼠国还舒服吧?呵呵

在 windows vista 的环境成功安装。安装 putty,但运行 vagrant ssh 时报告如下信息。

D:\rails_vm\rails-starter-box>vagrant ssh vagrant ssh isn't available on the Windows platform. You are still able to SSH into the virtual machine if you get a Windows SSH client (such as PuTTY). The authentication information is shown below:

Host: 127.0.0.1 Port: 2222 Username: vagrant

Private key: C:/Users/hawk/.vagrant.d/insecure_private_key

1、在用 putty 登陆时 Private key 读取有问题,但通过 putty 登陆时可以直接用用户名:vagrant 密码:vagrant,就能够登陆到 rails-starter-box。可以正常使用了。

2、使用 rails-starter-box 中的 mysql 使用心得: 如果在 rails-starter-box 命令行使用不方便,可以在宿主机使用类似 Navicat 工具连接 mysql. 连接时需要使用 ssh 连接通道进行连接,ssh 连接使用同 1;连接数据库的用户名 vagrant,密码为空。

哈哈 现在可以开始 rails 之旅啦!!加油.....

另,找到 putty 不能读 Private key 的解决办法,vagrant 官网上的说明: http://vagrantup.com/v1/docs/getting-started/ssh.html

Using Microsoft Windows?

An SSH client is generally not distributed with Windows by default. Because of this, if you are on Windows, Vagrant will instead output SSH authentication info which you can use with your favorite SSH client, such as PuTTY.

PuTTY may not recognize the insecure_private_key provided by vagrant as a valid private key. To remedy this, first grab the PuTTYgen app. Then use PuTTYgen and import the insecure_private_key (found in the .vagrant.d dir in your home directory) and save a ppk file from that private key. Use the ppk file instead of the default one when SSHing into your vagrant box.

You need to Sign in before reply, if you don't have an account, please Sign up first.