gpt4 book ai didi

playframework-2.0 - Cloud9 IDE 在编译时杀死激活器

转载 作者:行者123 更新时间:2023-12-04 09:01:00 24 4
gpt4 key购买 nike

我一直在尝试运行我的 Play! Cloud9 IDE 上的项目。然而,它在 start

之前一直杀死 activator
tabdulradi@my-project:~/workspace (master) $ ./activator
[info] Loading project definition from /home/ubuntu/workspace/project
[info] Set current project to my-project (in build file:/home/ubuntu/workspace/)
[my-project] $ start -Dhttp.port=8080
[info] Compiling 9 Scala sources and 1 Java source to /home/ubuntu/workspace/target/scala-2.10/classes...
[info] Main Scala API documentation to /home/ubuntu/workspace/target/scala-2.10/api...
[info] CoffeeScript compiling on 5 source(s)
[info] LESS compiling on 1 source(s)
[info] Wrote /home/ubuntu/workspace/target/scala-2.10/my-project_2.10-1.0-SNAPSHOT.pom
Killed

我试着只运行 compile 希望我能把执行分成更小的部分,所以 C9-IDE 不会杀死它。然而它也被杀死了

tabdulradi@my-project:~/workspace (master) $ ./activator compile
[info] Loading project definition from /home/ubuntu/workspace/project
[info] Set current project to my-project (in build file:/home/ubuntu/workspace/)
[info] Compiling 9 Scala sources and 1 Java source to /home/ubuntu/workspace/target/scala-2.10/classes...
Killed

但是,运行 run 会成功运行服务器,但会在第一个请求到达服务器时终止(即:开始编译)

tabdulradi@my-project:~/workspace (master) $ ./activator
[info] Loading project definition from /home/ubuntu/workspace/project
[info] Set current project to my-project (in build file:/home/ubuntu/workspace/)
[my-project] $ run -Dhttp.port=8080

--- (Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:8080

(Server started, use Ctrl+D to stop and go back to the console...)

[info] Compiling 9 Scala sources and 1 Java source to /home/ubuntu/workspace/target/scala-2.10/classes...
[info] LESS compiling on 1 source(s)
[info] CoffeeScript compiling on 5 source(s)
Killed

是否可以配置 Cloud9 IDE 以容忍激活器?或者至少配置 activator/sbt 来限制 CPU 消耗,这样 Cloud9IDE 就不会杀死它?

最佳答案

很可能是您的盒子内存不足。您可以使用“dmesg”检查您的进程是否因此而被终止。免费帐户目前可获得 512 MB,而高级用户可获得 1024 MB。

关于playframework-2.0 - Cloud9 IDE 在编译时杀死激活器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25672805/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com