【问题标题】:uWSGI error perl application not found未找到 uWSGI 错误 perl 应用程序
【发布时间】:2013-08-11 17:49:11
【问题描述】:

按照 dotcloud 上 perl 服务的基本设置示例(“ramen app example”)执行“dotcloud push”然后“dotcloud open”时,我不断收到“uWSGI error Perl application not found”点云 CLI。使用新生成的 URL 似乎代码推送是成功的,但是当我打开 URL 时我不断收到错误消息。这是我第一次部署 perl Dancer 应用程序。关于如何解决这个问题的任何想法?谢谢。

我在linux终端上的步骤:

1.环境设置

mkdir ramen-on-dotcloud
cd ramen-on-dotcloud
dotcloud create ramen


2.创建了构建文件“dotcloud.yml”
并将其放在顶部根“ramen-on-dotcloud”

www:
  type: perl
  approot: helloperl
  requirements:
    - App::cpanminus

3.生成了一个示例 PSGI 应用程序(perl Dancer)

cpanm Dancer
cd ramen-on-dotcloud
dancer -a helloperl
echo "require 'bin/app.pl';" > helloperl/app.psgi


4.通过编辑 makefile.pl 并在依赖项中添加 Plack 添加对 PSGI 应用程序的支持。

PREREQ_PM => {
    'Test::More'  =>  0,
    'YAML'        =>  0,
    'Dancer'      =>  1.3113,
    'Plack'       =>  0,
},


5.将应用推送到 dotcloud

dotcloud push


6.此时代码推送成功所以我打开生成的URL的

dotcloud open


然后我收到此错误...

uWSGI 错误

找不到 Perl 应用程序

有什么建议吗?谢谢!

【问题讨论】:

  • 我继续,添加了步骤。谢谢。

标签: perl uwsgi dotcloud dancer


【解决方案1】:

运行第 3 步会即时生成 Dancer 项目所需的文件。我想知道是否可能是这一步导致了您所看到的问题。可能与本地如何安装cpanm Dancer有关。

我已经运行了所有步骤并在此处上传了工作项目:https://github.com/johncosta/example-dancer-on-dotcloud

git clone https://github.com/johncosta/example-dancer-on-dotcloud
dotcloud create dancer
dotcloud push dancer

这样会产生更好的结果吗?

【讨论】:

  • 感谢约翰的快速回复。我是向 dotcloud 提交票证的同一个人,而您是回复的那个人。在发布了我在堆栈上解决错误所采取的步骤后不久,我意识到了这个问题,就像你所说的那样,第 3 步与 cpanm Dancer 本地安装不兼容。我只是跳过了命令“cpanm Dancer”,果然它动态创建了一个 perl Dancer 应用程序,并且能够毫无问题地打开 URL。再见 uWSGI 错误 :) 谢谢约翰。
猜你喜欢
  • 2014-08-16
  • 1970-01-01
  • 2014-07-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-07-28
  • 2017-07-17
  • 2012-12-26
相关资源
最近更新 更多