perl on php application on openshift

牧云@^-^@ 提交于 2019-12-25 07:06:20

问题


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

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.

Thanks!


回答1:


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



来源:https://stackoverflow.com/questions/24025044/perl-on-php-application-on-openshift

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!