scala - Communication between an application in play activator and server in amazon aws -


i have been studying several blogs couldn't clear picture.i building web application uses scala actors concurrency.my basic goal concurrently update shared file in server.and planning use aws it. see in several blogs people talking deploying play application in aws.does mean install whole activator play v2.3.5 in aws or place application.if placing application how can modify , test activator. can 1 give clear picture of process follow build application?. these blogs researched. may understandable couldn't clear picture being naive.

http://rijware.com/play-application-amazon-ec2-instance/ https://aishwaryasinghal.wordpress.com/2012/05/18/deploy-play-2-application-on-aws-with-tomcat-and-apache-httpd/ , few more..

here few things "may" understand play , how can deployed on ec2.

  • play containerless web framework - i.e., don't need deploy play application container (like traditional container based web frameworks such jboss , tomcat). instead use library , gets bundled jar file. need run jar jvm. if have ec2 vm has modern jvm can invoke jar file.

  • typesafe activator nice little tool helps create play , other reactive apps creating project directory structure, generating build.sbt, adding necessary plugins, showing output on on browser etc. wrapper on sbt (http://www.scala-sbt.org). don't need install activator run play app.

  • here 1 way deploy play app on ec2.

    1. create project on local machine using activator.
    2. build , test app locally
    3. create distribution using activator dist or sbt dist. should create zip file necessary dependencies.
    4. scp file ec2 vm
    5. unzip file dir ($my_app)
    6. run app using script ($my_app/bin/<my-app-name>)

you can follow exact same steps on remote ec2 vm if have project there. either install activator or sbt on remote vm.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -