Playframework 2.0 Cloud9 IDE在编译时杀死激活器
我一直在试着去演我的戏!Cloud9IDE上的项目。然而,它一直在Playframework 2.0 Cloud9 IDE在编译时杀死激活器,playframework-2.0,cloud9-ide,typesafe-activator,Playframework 2.0,Cloud9 Ide,Typesafe Activator,我一直在试着去演我的戏!Cloud9IDE上的项目。然而,它一直在启动之前杀死激活器 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/)
启动之前杀死激活器
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
会成功运行服务器,但当第一个请求到达服务器时(即:开始编译)会被终止
是否可以将Cloud9 IDE配置为允许使用activator?或者至少配置activator/sbt以限制CPU消耗,这样Cloud9IDE就不会杀死它了?最有可能的情况是您的机箱内存不足。您可以使用“dmesg”检查进程是否因此而被终止。免费帐户目前获得512MB,而高级用户获得1024MB
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