适用于 Windows 的便携式 Ruby on Rails 环境
大约两年前,有人问过同样的问题。当时的答案是 InstantRails。但 InstantRails 似乎已经过时了。
还有其他解决方案吗?
Somenone asked the same question about two years ago. The answer was InstantRails at that time. But InstantRails seems to be out of date.
Are there any other solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Bitnami 为流行平台提供本机和虚拟堆栈,您可以查看这些。
Bitnami offers both native and virtual stacks for popular platforms, you might check these out.
我刚刚听说 Instant Rails VM Engineyard 使用 Vagrant 制作的——它是一个 Ubuntu 虚拟盒子,Rails 已全部设置完毕并准备就绪。不过我还没有尝试过。
尽管我希望 Rails 在 Windows 上运行得更好,但放弃并使用 Ubuntu VM 可能是最适合您的目的 - 它会非常独立。
I just heard about an Instant Rails VM that Engineyard made using Vagrant-- it's an Ubuntu virtual box with rails all set up and ready to go. I haven't tried it yet though.
As much as I wish Rails ran better on Windows, giving up and using an Ubuntu VM may be the best thing for your purposes-- it would be very self contained.
这个问题现在有点老了,但我今天在寻找类似的问题时偶然发现了它。
目前最先进的技术似乎是 rubyinstaller.org Puppet 和 Chef 都在 Windows 上使用此运行时。
运行时采用安装包的形式,因此它不一定是便携式 USB 记忆棒,但它确实为您提供了安装到各种目录的选项。您应该能够简单地将
C:\RubyXXX
复制到 USB 记忆棒,适当更改%PATH%
并使用它运行。希望这些信息有帮助。
This question is a bit old at this point in time but I stumbled upon it searching for a similar question today.
The current state of the art appears to be rubyinstaller.org Both Puppet and Chef are using this runtime on windows.
The runtime takes the form of an installation package, so it's not necessarily USB stick portable, but it does give you the option to install to various directories. You should be able to simply copy
C:\RubyXXX
to your USB stick, change your%PATH%
appropriately and run with it.Hope this information helps.
ENV_DIR
目录
ENV_DIR\ruby
将其解压到目录
ENV_DIR\devkit
创建一个脚本:
ENV_DIR\setpaths.bat
,使用以下命令:创建一个脚本:
ENV_DIR\console.bat
使用命令:现在您可以运行 console.bat 可执行文件,并拥有一个可以在其中创建和运行 Rails 项目的控制台。
来源:http://hcettech.blogspot.pt/2012/05 /windows-portable-rails-development.html
ENV_DIR
directory
ENV_DIR\ruby
extract it on directory
ENV_DIR\devkit
Create a script:
ENV_DIR\setpaths.bat
with the commands:Create a script:
ENV_DIR\console.bat
with the commands:Now you can now run the console.bat executable and have a console in which you can create and run Rails projects.
Source: http://hcettech.blogspot.pt/2012/05/windows-portable-rails-development.html