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

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

问题描述

请原谅这个蹩脚的问题,但无论如何我的Rails应用程序会收到FTP传输吗?



我每天都有FTP上传,我无法控制,每天将数百个HTML页面上传到我们现有的服务器。我想将这个站点移到Heroku上的Rails-only部署,但我无法触及这个FTP上传(这仍然需要发生)。



由于Heroku不会不提供公共存储空间或FTP,我不能直接将文件上传到Heroku(而且我真的不想)。我所喜欢的是将FTP上传指向我的Rails应用程序,并让我的Rails应用程序接收并解析HTML文件以提取我需要的信息,将其存储在数据库中,并执行我需要的任何其他操作。 (有点像REST风格的动作,但是通过FTP而不是任何标准的REST动词)。

这是否可能,或者我是否因为想到它而狂吠?如果可能的话,我该怎么做呢? 解决方案

Heroku不支持你的应用程序接收FTP。 >

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


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

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).

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 does not support your application receiving FTP.

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

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

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