当我在点云CLI上执行"点云推送"one_answers"点云打开"时,按照点云上perl服务的基本设置示例("ramen-app示例"),我会一直得到一个"找不到uWSGI错误perl应用程序"。对于新生成的URL,代码推送似乎是成功的,但当我打开URL时,我总是收到错误。这是我第一次部署perl-Dancer应用程序。对如何解决这个问题有什么想法吗?谢谢
我在linux终端上采取的步骤:
1.环境设置
mkdir ramen-on-dotcloud
cd ramen-on-dotcloud
dotcloud create ramen
2.已创建构建文件"dotcloud.yml"
并将其放在最上面的根"点云上的拉面"
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并在dependences中添加Plack来添加对PSGI应用程序的支持
PREREQ_PM => {
'Test::More' => 0,
'YAML' => 0,
'Dancer' => 1.3113,
'Plack' => 0,
},
5.将应用程序推送到点云
dotcloud push
6.此时代码被成功推送,因此我打开生成的URL的
dotcloud open
然后我得到这个错误
uWSGI错误
找不到Perl应用程序
有什么建议吗?谢谢
运行步骤#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
这会产生更好的结果吗?