muuki88 / activator-play-cluster-sample Goto Github PK
View Code? Open in Web Editor NEWDemonstrates how to watch an akka cluster with a play frontend
License: Other
Demonstrates how to watch an akka cluster with a play frontend
License: Other
Hello, muuki88.
Your teplate exactly what need! Thanks for the one! (and sorry for my English)
But i have problem whit it:
My environment:
How i make project:
activator new play-akka-cluster-sample play-akka-cluster-sample
cd play-akka-cluster-sample
sbt compile
in new concole1> sbt "project backend" "run 2551"
in new concole2> sbt "project backend" "run 2552"
in new concole3> sbt "project frontend" run
in the consoles look like evreting fine.
Than i open page "http://localhost:9000/" in my chrome browser and i see "nothing".
This is log from console3 (wher Play is running):
...
(Server started, use Ctrl+D to stop and go back to the console...)[info] Compiling 13 Scala sources and 2 Java sources to C:\projects\play-akka-cluster-sample\frontend\target\scala-2.11\classes...
[info] JavaScript linting on 14 source(s)
[info] LESS compiling on 1 source(s)
[INFO] [09/09/2014 11:32:00.747] [play-internal-execution-context-1] [Remoting] Starting remoting
[INFO] [09/09/2014 11:32:00.819] [play-internal-execution-context-1] [Remoting] Remoting started; listening on addresses :[akka.tcp://[email protected]:54017]
[INFO] [09/09/2014 11:32:00.828] [play-internal-execution-context-1] [Cluster(akka://application)] Cluster Node [akka.tcp://[email protected]:54017] - Starting up...
[INFO] [09/09/2014 11:32:00.875] [play-internal-execution-context-1] [Cluster(akka://application)] Cluster Node [akka.tcp://[email protected]:54017] - Registered cluster JMX MBean [akka:type=Cluster]
[INFO] [09/09/2014 11:32:00.875] [play-internal-execution-context-1] [Cluster(akka://application)] Cluster Node [akka.tcp://[email protected]:54017] - Started up successfully
[info] play - Starting application default Akka system.
[info] play - Application started (Dev)
[INFO] [09/09/2014 11:32:00.948] [application-akka.actor.default-dispatcher-2] [Cluster(akka://application)] Cluster Node [akka.tcp://[email protected]:54017] - Metrics collection has started successfully
[INFO] [09/09/2014 11:32:01.112] [application-akka.actor.default-dispatcher-14] [Cluster(akka://application)] Cluster Node [akka.tcp://[email protected]:54017] - Welcome from [akka.tcp://[email protected]:2552]
[INFO] [09/09/2014 11:32:01.921] [application-akka.actor.default-dispatcher-13] [ActorSystem(application)] Factorial Service started at akka://application/user/factorialService
[debug] application - Unforseen error for app.js at /public
java.lang.RuntimeException: no resource
at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1$$anonfun$13.apply(Assets.scala:237) ~[play_2.11-2.3.1.jar:2.3.1]
at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1$$anonfun$13.apply(Assets.scala:237) ~[play_2.11-2.3.1.jar:2.3.1]
at scala.Option.getOrElse(Option.scala:120) [scala-library-2.11.1.jar:na]
at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1.apply(Assets.scala:237) ~[play_2.11-2.3.1.jar:2.3.1]
at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1.apply(Assets.scala:236) ~[play_2.11-2.3.1.jar:2.3.1]
it look likes the "require.js:1895" use wrong URL for load require resources,
@muuki88, do you mind if I adapt your sample into an example app of my own open source library?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.