Rails 应用程序与运行 Ubuntu 的本地计算机交互
我想要做什么:
服务托管的rails应用程序(heroku或其他)
用户登录到应用程序并想要“做事情”
>“做事”需要对我公寓中的本地计算机运行命令
我之前已经通过 SSH 连接到服务器...但我认为如果服务器启动连接,这将是最好的设置
- 我公平地运行永久 SSH 不是最好的主意
- 我对这个过程不是 100% 确定..我只需要在我的托管应用程序..和我的本地计算机之间传输信息。
ruby 套接字命令集可能有效吗?
有什么特殊的宝石可以处理这个问题吗?
提前致谢!
What im trying to do:
service-hosted rails app ( heroku or something )
user logs into application and wants to " DO THINGS "
" DO THINGS " entails running commands to the local machine i have here in my apartment
I've SSHed into a server before ... but i think this would be best setup if the server initiates the connection
- I'm FAIRLY running a permanent SSH isnt the best idea
- I'm not 100% sure on the process .. i just need information transfer between my hosted application .. and my local machine.
ruby socket set of commands which could possibly work?
any particular gem that would handle this?
Thanks ahead of time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
到目前为止,NetSSH 似乎是我
在命令提示符下寻找的答案:
接下来我们创建一个新的控制器文件:
并在 ssh_connections_controller.rb 文件中放置:
...并替换您的本地设置...
“wonton”将是您想要通过 SSH 连接的任何用户的名称,因为
更多内容有待更新!
so far it looks like NetSSH is the answer im looking for
at command prompt:
Next we create a new controller file:
and inside ssh_connections_controller.rb file place:
... and substitute your local settings...
'wonton' would be the name of whatever user you want to SSH in as
more to be updated!