SlideShare a Scribd company logo
Setting up Play Framework
Deploying Play Framework in EC2 - part # 3
Kamarul kawnayeen
Preface
This is the final part of deploying playframework in EC2 tutorial series. At part
one, I showed how to setup a virtual server. At part two, I setup lamp stack on
that virtual server. In this part, I’ll show how to deploy a play application. It will
require following steps:-
➢ Install Java Development Kit (jdk)
➢ Setup typesafe activator
➢ Create & deploy play application
Installing JDK
Connect with your remote server using terminal & use the following two
command -
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
now, use sudo apt-get install oracle-java8-installer -y
hit enter to agree with the java license
Select “<Yes>” to install oracle jdk
Once you are done, use the following command to check java version
java -version
Setup Typesafe Activator
create a directory for activator and go there
sudo mkdir /usr/share/activator
cd /usr/share/activator
now download activator using the following command
sudo wget http://downloads.typesafe.com/typesafe-activator/1.3.2/typesafe-activator-1.3.2.zip
It’s downloaded :)
install unzip
sudo apt-get install unzip
now unzip the activator
sudo unzip typesafe-activator-1.3.2.zip
now, sudo chmod -R a+x activator-1.3.2
open bash.bashrc using nano
sudo nano /etc/bash.bashrc
Add this line
at the end of
the file
now either restart your virtual machine or use “source .bashrc”
go to the directory where you want to create your application and type “activator new”
select “play-java” and then enter application name
As we are working on a free t2 micro instance & we have only 1 GiB of Ram, so we must face problem in
starting the play application. An easy work around is lowering the heap memory.
So first set initial heap size to 128 M & max heap size to 512 M by the following command
export _JAVA_OPTIONS=”-Xms128m -Xmx512m”
then use the following
activator start
once the application started, go to your browser & type
{ip_address_of_your_virtual_machine}:9000
and hit enter
All praises and thanks be to Allah, the lord of ‘Alamin
(mankind, jinns and all that exists)
(Al-Fatihah : 2)

More Related Content

PDF
Virtual server on aws
PDF
Up & running with jasmine
PDF
Installing Lamp Stack on Ubuntu Instance
PDF
Installing Tomcat on Ubuntu Instance
PPTX
Backbase CXP Manager Setup
PDF
Vagrant plugin development intro
PPT
Nodejs Intro Part One
ODP
Nodejs Intro - Part2 Introduction to Web Applications
Virtual server on aws
Up & running with jasmine
Installing Lamp Stack on Ubuntu Instance
Installing Tomcat on Ubuntu Instance
Backbase CXP Manager Setup
Vagrant plugin development intro
Nodejs Intro Part One
Nodejs Intro - Part2 Introduction to Web Applications

What's hot (18)

DOC
Installation of Dspace in Windows OS: A Complete Documentation
PPTX
How To Deploy a Clojure Web Application on Ubuntu 14.04
PDF
Oracle Enterprise Manager Cloud Control 13c13.3 Installation On Oracle Linux-7
PPTX
DOCX
Api webservice setupinstructions
PPTX
Cloudera amazon-ec2
PPTX
Dspace for windows
PDF
instaling
PPTX
Pentesting Cloud Environment
PPTX
.NET Conf 2018: Build Great Libraries using .NET Standard
PPTX
ExpressJs Session01
PDF
Angular2 ecosystem
PPTX
你不知道的前端
PDF
Virtualization session 7 by Gugan
PDF
F5 Automation and service discovery
PPTX
Caching and invalidating with managed store
PDF
Testing MeteorJS using CasperJS
PDF
Site Testing with CasperJS
Installation of Dspace in Windows OS: A Complete Documentation
How To Deploy a Clojure Web Application on Ubuntu 14.04
Oracle Enterprise Manager Cloud Control 13c13.3 Installation On Oracle Linux-7
Api webservice setupinstructions
Cloudera amazon-ec2
Dspace for windows
instaling
Pentesting Cloud Environment
.NET Conf 2018: Build Great Libraries using .NET Standard
ExpressJs Session01
Angular2 ecosystem
你不知道的前端
Virtualization session 7 by Gugan
F5 Automation and service discovery
Caching and invalidating with managed store
Testing MeteorJS using CasperJS
Site Testing with CasperJS
Ad

Viewers also liked (20)

PDF
A Behind the Scenes Look at the Force.com Platform
PDF
Fundraising with Salesforce
PDF
Salesforce API Series: Integrating Applications with Force.com Webinar
PDF
Play Framework + Docker + CircleCI + AWS + EC2 Container Service
PDF
How to choose the right Integration Framework - Apache Camel (JBoss, Talend),...
PPTX
Capital structure b.v.raghunandan
PPTX
Changing Dynamics Of Financial Management-B.V.Raghunandan
PPTX
India and its economic invincibility b.v.r raghunandan
PPT
Treatment plan
PPTX
Abstract management and professionalism b.v.raghunandan
PPTX
Campus Agenda For Career Planning-B.V.Rahunandan
PPT
B.V.Raghunandan-A Random Walk In Indian Marketing
PPTX
Consumer Psychology-B.V.Raghunandan
PPT
Gfc, hiriyadka career options for commerce and management graduates-b.v.raghu...
PPTX
Leverage and sharia law b.v.raghunandan
PPTX
Retail investment in corporate securities b.v.raghunandan
PPTX
Stock Exchange-B.V.Raghunandan
PPTX
Occupy wall sereet b.v.raghunandan
PPTX
Application of innovative business models in energy management b.v..raghunandan
A Behind the Scenes Look at the Force.com Platform
Fundraising with Salesforce
Salesforce API Series: Integrating Applications with Force.com Webinar
Play Framework + Docker + CircleCI + AWS + EC2 Container Service
How to choose the right Integration Framework - Apache Camel (JBoss, Talend),...
Capital structure b.v.raghunandan
Changing Dynamics Of Financial Management-B.V.Raghunandan
India and its economic invincibility b.v.r raghunandan
Treatment plan
Abstract management and professionalism b.v.raghunandan
Campus Agenda For Career Planning-B.V.Rahunandan
B.V.Raghunandan-A Random Walk In Indian Marketing
Consumer Psychology-B.V.Raghunandan
Gfc, hiriyadka career options for commerce and management graduates-b.v.raghu...
Leverage and sharia law b.v.raghunandan
Retail investment in corporate securities b.v.raghunandan
Stock Exchange-B.V.Raghunandan
Occupy wall sereet b.v.raghunandan
Application of innovative business models in energy management b.v..raghunandan
Ad

Similar to Play Framework in EC2 (20)

PDF
Apache Kafka Setup with Zookeeper - SkillAnything.pdf
PDF
Sun raysetup
PDF
Appium- part 1
PPT
Setting up the hyperledger composer in ubuntu
PDF
Set up Hadoop Cluster on Amazon EC2
DOCX
BLCN532 Lab 1Set up your development environmentV2.0.docx
PDF
Orangescrum In App Chat Add-on User Manual
DOCX
Prizm Installation Guide
PDF
How To Install OpenFire in CentOS 7
PDF
Install VMWare Tools CentOS 7
PPTX
Improving WordPress Theme Development Workflow - Naveen Kharwar.
PDF
Lamp Server With Drupal Installation
PDF
Medooze MCU Video Multiconference Server Installation and configuration guide...
PPT
Your own minecraft server on a linode vps
PDF
Privileges Escalation by Exploiting Client-Side Vulnerabilities Using Metasploit
PPTX
How to Develop Progressive Web Apps in Flutter – Step by Step Guide.pptx
PDF
Installing Oracle Endeca Information Discovery 3.0
PPTX
Installation of ubuntu, ns3 and compiling first
PDF
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
PPT
Apache Kafka Setup with Zookeeper - SkillAnything.pdf
Sun raysetup
Appium- part 1
Setting up the hyperledger composer in ubuntu
Set up Hadoop Cluster on Amazon EC2
BLCN532 Lab 1Set up your development environmentV2.0.docx
Orangescrum In App Chat Add-on User Manual
Prizm Installation Guide
How To Install OpenFire in CentOS 7
Install VMWare Tools CentOS 7
Improving WordPress Theme Development Workflow - Naveen Kharwar.
Lamp Server With Drupal Installation
Medooze MCU Video Multiconference Server Installation and configuration guide...
Your own minecraft server on a linode vps
Privileges Escalation by Exploiting Client-Side Vulnerabilities Using Metasploit
How to Develop Progressive Web Apps in Flutter – Step by Step Guide.pptx
Installing Oracle Endeca Information Discovery 3.0
Installation of ubuntu, ns3 and compiling first
How To Install Openbravo ERP 2.50 MP43 in Ubuntu

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation theory and applications.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Cloud computing and distributed systems.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Electronic commerce courselecture one. Pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation theory and applications.pdf
Understanding_Digital_Forensics_Presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Dropbox Q2 2025 Financial Results & Investor Presentation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Empathic Computing: Creating Shared Understanding
Encapsulation_ Review paper, used for researhc scholars
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Cloud computing and distributed systems.
Building Integrated photovoltaic BIPV_UPV.pdf
MIND Revenue Release Quarter 2 2025 Press Release
The AUB Centre for AI in Media Proposal.docx
Unlocking AI with Model Context Protocol (MCP)
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Electronic commerce courselecture one. Pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Per capita expenditure prediction using model stacking based on satellite ima...

Play Framework in EC2

  • 1. Setting up Play Framework Deploying Play Framework in EC2 - part # 3 Kamarul kawnayeen
  • 2. Preface This is the final part of deploying playframework in EC2 tutorial series. At part one, I showed how to setup a virtual server. At part two, I setup lamp stack on that virtual server. In this part, I’ll show how to deploy a play application. It will require following steps:- ➢ Install Java Development Kit (jdk) ➢ Setup typesafe activator ➢ Create & deploy play application
  • 4. Connect with your remote server using terminal & use the following two command - sudo add-apt-repository ppa:webupd8team/java -y sudo apt-get update
  • 5. now, use sudo apt-get install oracle-java8-installer -y hit enter to agree with the java license
  • 6. Select “<Yes>” to install oracle jdk Once you are done, use the following command to check java version java -version
  • 8. create a directory for activator and go there sudo mkdir /usr/share/activator cd /usr/share/activator now download activator using the following command sudo wget http://downloads.typesafe.com/typesafe-activator/1.3.2/typesafe-activator-1.3.2.zip
  • 10. install unzip sudo apt-get install unzip now unzip the activator sudo unzip typesafe-activator-1.3.2.zip
  • 11. now, sudo chmod -R a+x activator-1.3.2 open bash.bashrc using nano sudo nano /etc/bash.bashrc
  • 12. Add this line at the end of the file
  • 13. now either restart your virtual machine or use “source .bashrc” go to the directory where you want to create your application and type “activator new”
  • 14. select “play-java” and then enter application name
  • 15. As we are working on a free t2 micro instance & we have only 1 GiB of Ram, so we must face problem in starting the play application. An easy work around is lowering the heap memory. So first set initial heap size to 128 M & max heap size to 512 M by the following command export _JAVA_OPTIONS=”-Xms128m -Xmx512m” then use the following activator start
  • 16. once the application started, go to your browser & type {ip_address_of_your_virtual_machine}:9000 and hit enter All praises and thanks be to Allah, the lord of ‘Alamin (mankind, jinns and all that exists) (Al-Fatihah : 2)