Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
“rails”命令只能在 jruby/bin 文件夹中执行。我想在其他文件夹中创建我的应用程序。
例如:
C:/jruby/Projects/
但在此文件夹中,“rails”命令无法识别。有没有办法创建某种别名,我可以用来做类似的事情:
C:/jruby/Projects/alliasname rails
您可以将该jruby/bin文件夹添加到 PATH 环境变量中。但请务必实际添加完整路径。
jruby/bin
只需在开始菜单中搜索“env”,然后编辑PATH变量:
PATH