适用于 Windows 的便携式 Ruby on Rails 环境

发布于 2024-10-06 23:47:22 字数 177 浏览 3 评论 0原文

大约两年前,有人问过同样的问题。当时的答案是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

痴者 2024-10-13 23:47:22

Bitnami 为流行平台提供本机和虚拟堆栈,您可以查看这些。

Bitnami offers both native and virtual stacks for popular platforms, you might check these out.

意中人 2024-10-13 23:47:22

我刚刚听说 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.

漆黑的白昼 2024-10-13 23:47:22

这个问题现在有点老了,但我今天在寻找类似的问题时偶然发现了它。

目前最先进的技术似乎是 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.

冬天旳寂寞 2024-10-13 23:47:22
  • 选择并创建一个目录来包含便携式环境
    ENV_DIR
  • RubyInstaller 下载 ruby​​ 二进制文件并将其放在
    目录 ENV_DIR\ruby
  • 从 RubyInstaller 下载开发工具包提取器并
    将其解压到目录 ENV_DIR\devkit

创建一个脚本:ENV_DIR\setpaths.bat,使用以下命令:

@set PATH=%PATH%;%cd%\ruby\bin
@set PATH=%PATH%;%cd%\devkit\bin
@set PATH=%PATH%;%cd%\devkit\mingw\bin
@set PATH=%PATH%;%cd%\devkit\mingw\libexec\gcc\mingw32\4.5.2
@set PATH=%PATH%;%cd%\devkit\mingw\mingw32\bin
@set PATH=%PATH%;%cd%\devkit\sbin\awk

创建一个脚本:ENV_DIR\console.bat使用命令:

@cmd /K setpaths.bat

现在您可以运行 console.bat 可执行文件,并拥有一个可以在其中创建和运行 Rails 项目的控制台。

来源:http://hcettech.blogspot.pt/2012/05 /windows-portable-rails-development.html

  • Choose and create a directory to contain the portable environment
    ENV_DIR
  • Download the ruby binary from RubyInstaller and put it on
    directory ENV_DIR\ruby
  • Download the Development Kit extractor from RubyInstaller and
    extract it on directory ENV_DIR\devkit

Create a script: ENV_DIR\setpaths.batwith the commands:

@set PATH=%PATH%;%cd%\ruby\bin
@set PATH=%PATH%;%cd%\devkit\bin
@set PATH=%PATH%;%cd%\devkit\mingw\bin
@set PATH=%PATH%;%cd%\devkit\mingw\libexec\gcc\mingw32\4.5.2
@set PATH=%PATH%;%cd%\devkit\mingw\mingw32\bin
@set PATH=%PATH%;%cd%\devkit\sbin\awk

Create a script: ENV_DIR\console.bat with the commands:

@cmd /K setpaths.bat

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文