在openshift上的php应用程序上运行perl [英] perl on php application on openshift

查看:105
本文介绍了在openshift上的php应用程序上运行perl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,Openshift帅哥:是否有任何新功能可以在openshift(高可用性模式)下与PHP Web应用程序内联运行perl脚本(即Perl盒式磁带)?

Hey Openshift dudes: is there any new facility to run a perl script (i.e. a Perl cartridge) inline with a PHP web application on openshift (high-availability mode)?

还是只需要添加一个单独的Perl应用程序,然后将其指向我已放入PHP应用程序中的MYSQL数据库即可. Perl只是针对该数据库的ETL.

Or do I simply need to add a separate Perl application and just point it to the MYSQL database I've put in the PHP application. The Perl is just for ETL against that database.

谢谢!

推荐答案

如果您尝试运行命令行Perl脚本,则可以从PHP或CRON调用它,所有语言都适用于所有设备,墨盒只是说一种是您的主要网络语言.您还可以使用.htaccess文件来允许通过与此类似的http调用执行.pl文件(但使用perl代替python)

If you are trying to run a command line Perl script, then you can just call it from PHP or CRON, all languages are available to all gears, the cartridge just says which one is your primary web language. You can also use a .htaccess file to allow executing .pl files via http calls similar to this (but use perl instead of python) https://www.openshift.com/forums/openshift/ajax-failure-as-origin-not-allowed-in-access-control-allow-origin#comment-33585

这篇关于在openshift上的php应用程序上运行perl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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