FTP **TO** Rails 应用托管在 Heroku 上? [英] FTP **TO** Rails app hosted on Heroku?

查看:19
本文介绍了FTP **TO** Rails 应用托管在 Heroku 上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请原谅这个古怪的问题,但有没有办法让我的 Rails 应用程序接收 FTP 传输?

Pardon the whacky question, but is there anyway to have my Rails app receive a FTP transmission?

我每天都有我无法控制的 FTP 上传,它每天将数百个 HTML 页面上传到我们现有的服务器.我想将此站点移动到 Heroku 上的仅 Rails 部署,但我无法触摸此 FTP 上传(仍然需要进行).

I have daily FTP upload that I have no control over, which uploads several hundred HTML pages to our existing server each day. I want to move this site to a Rails-only deployment on Heroku, but I can't touch this FTP upload (which still needs to happen).

由于 Heroku 不提供公共存储空间或 FTP,我无法将文件直接上传到 Heroku(我也不想这样做).我希望将 FTP 上传指向我的 Rails 应用程序,让我的 Rails 应用程序接收并解析 HTML 文件以提取我需要的信息,将其存储在数据库中,然后做我需要做的任何其他事情.(有点像 RESTful 动作,但通过 FTP 而不是任何标准的 REST 动词).

Since Heroku doesn't offer public storage space or FTP, I can't upload the files directly to Heroku (and I don't really want to). What I would love is to point the FTP upload to my Rails app, and have my Rails app receive and parse the HTML files to pull out the information I need, store it in the database, and do whatever else I need to do with it. (Kinda like a RESTful action, but via FTP instead of any of the standard REST verbs).

这完全有可能吗,还是我想疯了?如果可能的话,我该怎么做?

Is this at all possible or am I barking mad for thinking it? If it is possible, how would I go about doing this?

推荐答案

Heroku 不支持您的应用程序接收 FTP.

Heroku does not support your application receiving FTP.

如果你真的想要的话,你可以写一个关于接收 FTP 的 Heroku 插件.

You could possibly write a Heroku addon around receiving FTP, if you really want it.

这篇关于FTP **TO** Rails 应用托管在 Heroku 上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆