Yaws支持 html5吗,erlang - Running Yaws Apps - Stack Overflow

I am quite new to erlang and yaws. I after playing around with the language and easy yaws features like ehtml and normal appmods I tried to write a yapp. I followed http://yaws.hyber.org/yapp_intro.yaws and https://github.com/davide/yawn/wiki to get it more or less running. It simply consists of an .app file and a simple test.erl/beam that just has a out/1.

Yaws starts without a problem and loads the yapp. When I run yaws in the interactive mode and call test:out(somehting) it works fine. When I surf the url (with browser or curl) I get an

=ERROR REPORT==== Date ===

Yaws process died:...

and nothing returned to the client. I have been trying around a couple of things, but I haven't found the problem yet.

I believe the problem is in my .app file...

I hope you can help my. I added the content of the .app and my localhost-ssl.conf below.

marc@server:~$ cat /usr/lib/yaws/lib/api/ebin/api.app

{application, api,

[{description,"cloudia api as yapp"},

{vsn,"0.1"},

{modules,[]},

{registered, []},

{env, [

{yapp_appmods,[{"/",test}]},

]}]}.

marc@server:~$ sudo cat /etc/yaws/conf.d/localhost-ssl.conf

port = 443

listen = 0.0.0.0

docroot = /usr/share/yaws

arg_rewrite_mod = api

#dir_listings = true

keyfile = /etc/yaws/yaws-key.pem

certfile = /etc/yaws/yaws-cert.pem

yapp_server_id = edo

Thanks

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值