小编Car*_*rla的帖子

在Heroku中部署后,Scala Play 2.2应用程序崩溃:target/start没有这样的文件或目录

我已经和它斗争了几个小时,我无法弄清楚为什么在Heroku中部署我的Scala Play 2.2应用程序之后我得到了这个堆栈跟踪:

2013-09-30T01:05:09.413177+00:00 heroku[web.1]: Starting process with command `target/start -Dhttp.port=18174 $PLAY_OPTS`
2013-09-30T01:05:10.931893+00:00 app[web.1]: bash: target/start: No such file or directory
2013-09-30T01:05:12.382399+00:00 heroku[web.1]: Process exited with status 127
2013-09-30T01:05:12.414050+00:00 heroku[web.1]: State changed from starting to crashed
Run Code Online (Sandbox Code Playgroud)

我尝试了几个Procfile版本没有成功,一些例子是:

web: target/start -Dhttp.port=$PORT

web: target/start -Dhttp.port=$PORT $PLAY_OPTS

web: target/start -Dhttp.port=$PORT $JAVA_OPTS

web: target/start Web -Dhttp.port=$PORT $PLAY_OPTS

web: target/start -Dhttp.port=$PORT $PLAY_OPTS -Dconfig.file=application.conf

web: target/start -Dhttp.port=$PORT $PLAY_OPTS -Dconfig.file=conf/application.conf
Run Code Online (Sandbox Code Playgroud)

我甚至尝试过不使用Procfile.

我正在使用Scala 2.10.2和Play 2.2.在同一个Heroku应用程序中,我在Play 2.0上运行了我的项目的先前版本,我不知道这是否相关.

该应用程序在本地完美运行 我连接到Heroku的bash并运行

sbt clean
sbt stage
Run Code Online (Sandbox Code Playgroud)

手工检查,我检查了目标是否被清理并重新建造.

"目标/开始:没有这样的文件或目录"是指什么?对目标?要启动命令?别的什么?

deployment scala heroku scala-2.10 playframework-2.2

10
推荐指数
1
解决办法
4449
查看次数

无法在 Node WebKit 应用程序中运行 Node.js 模块 mdns

我有一个节点 webkit 应用程序,它使用 mdns 模块从 Mac(使用 Mavericks)发布 Bonjour 服务。当我运行服务器代码时node server.js一切正常,但是当运行使用相同服务器代码的节点 webkit 应用程序时,我收到此错误:

"Uncaught Error: dlopen(/Users/me/myfolder/node_modules/mdns/build/Release/dns_sd_bindings.node, 1): no suitable image found.  Did find:
    /Users/me/myfolder/node_modules/mdns/build/Release/dns_sd_bindings.node: mach-o, but wrong architecture", source: /Users/me/myfolder/node_modules/mdns/lib/dns_sd.js (35)
Run Code Online (Sandbox Code Playgroud)

显然,当您安装该mdns模块时npm,它是为 x86 架构构建的,而我需要它用于 i386,因为 node-webkit 是为 i386 构建的(我通过阅读此线程发现了这一点: http: //forums.macrumors.com/showthread .php?t=879780 )。您可以通过在终端中运行以下命令来验证它:

$ lipo -info /Applications/node-webkit.app/Contents/MacOS/node-webkit 
Non-fat file: /Applications/node-webkit.app/Contents/MacOS/node-webkit is architecture: i386
Run Code Online (Sandbox Code Playgroud)

我发现这个链接建议了一个解决方案:https://github.com/rogerwang/node-webkit/issues/296对于另一个模块(节点代理)。建议的说明是:

I managed to build a 32-bit version of node-proxy as follows:
I installed nw-gyp 
I ran nw-gyp configure --target=0.3.6 …
Run Code Online (Sandbox Code Playgroud)

mdns bonjour node.js gyp node-webkit

3
推荐指数
1
解决办法
2588
查看次数