Redcar 直接安装选项
有没有办法将 redcar 定向安装到用户定义的位置而不是用户主目录?
我在 USB 驱动器上安装了 jruby,E:\jruby-1.6.2。 Redcar 将 gems 安装到 E:\jruby 子目录,然后将用户文件安装到 c: 上的 ~/。
有没有办法将其定向到 e:\fakehome。我想将所有安装文件保留在我的 USB 驱动器上。
Is there a way to direct the install of redcar to a user defined location other than a user home directory?
I have a jruby install on a USB drive, E:\jruby-1.6.2. Redcar installs the gems to the E:\jruby sub directory but then installs the user files to ~/ on c:.
Is there a way to direct it to e:\fakehome. I want to keep all installation files on my USB drive.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我没有特定于 Redcar 的解决方案,但这里有一个可能适合您的通用解决方案。
问题:
用户有一个将应用程序数据文件安装到固定位置的应用程序,但用户希望这些文件位于不同的位置(例如可移动驱动器或标准化应用程序数据目录)。
解决方案:
使用连接点或符号链接来模拟预配置目录的存在。
步骤:
如果一切顺利的话你应该完成了。
这里是连接创建器的链接(适用于旧版本的 Windows (TM))
http:// technet.microsoft.com/en-us/sysinternals/bb896768
HTH
I do not have a Redcar-specific solution, but here is a general solution that may work for you.
PROBLEM:
The user has an application that installs application data files to a fixed location, but the user wants the files in a different location (such as a removable drive or a standardized app data directory).
SOLUTION:
Use a Junction Point or Symlink to simulate the presence of the pre-configured directory.
STEPS:
If all goes well you should be finished.
Here i a link to a junction creator (for older versions of Windows (TM))
http://technet.microsoft.com/en-us/sysinternals/bb896768
HTH
Matthew Scharley 的回应直接回答了如何为 redcar 做到这一点。
目前它是硬编码的。值得庆幸的是,它很容易更改:
https://github.com/ redcar/redcar/blob/master/lib/redcar.rb#L211
This response from Matthew Scharley directly answers how this can be done for redcar.
For the moment it is hard coded. Thankfully it is easy to change:
https://github.com/redcar/redcar/blob/master/lib/redcar.rb#L211