Loading...
Answers
MenuHow do I deploy a Play Framework Scala app on AWS?
I'm using MySQL for the backend.
Answers
Here is an article about setting up AWS EC2 to run Play and Mongo: http://stevenwilliamalexander.wordpress.com/2012/06/10/amazon-ec2-mongo-play-scala-instance-setup-gu/ and there are also guides for binding to Amazon Simple DB and Dynamo in Scala as well that might be much easier setup than using MySQL.
I've used a lot of AWS services for building composite services and I'm available for a call if you get stuck or need any advice on best practices.
I know that AWS gives you the ability to set up a free server image for Linux. If you have shell access, you can just use ssh to log onto the server. If not, maybe you can FTP in.
Once there, you can access the AWS management console which should give you server information that you need to add to your scala app.
You will also need tomcat set up on AWS as well. Tomcat should also set up the permissions you need for SSH to work. Also, if you have Tomcat set up, you should be able to use Java 6 or 7 to log into your MySQL database.
I am not a total expert on Play2 or Scala apps, but I have set up several other apps set up this way. I do mostly PHP work and very little Java, so my AWS is set up with mostly PHP.
Bruce
Heroku is an easier starting point for a lot of people, but if you want to go with AWS, this might help get you started:
http://reprogram.mzafer.com/2012/12/setting-up-ec2-instance-for-play2.html
Related Questions
-
Is it possible put your kindle book for free, and get a lot of reviews, and then reverse to a paid book?
If you sign up with KDP select, you'll be given 5 days where you can drop the price to free. You'll be restricted to only publish on their platform, however. Hit up your email list, use sites like BookBub, or reddit.com/r/FreeEBooks in order to prepare for the discount launch. Start the deal on a Sunday since more people will be at home and prepared to read rather than Friday and Saturday nights when they're out. Include, at the end of your book, a request for people to leave honest feedback. They're more apt to do it if you remind them. You can also include links to your other titles. I've published a handful of titles under different pen names but I'm not an expert. I just figured I'd share what my research picked up.CD
-
how to make google assistant ask a question 12 Replies
I am trying to figure out how to make the Google Assistant ask me a question when externally
I am not sure what you are trying to ask but if you are asking how to get your google assistant to ask questions (and act on the replies perhaps?). You do so by building Google Actions. Google Actions are just like mobile apps but is made available in Google Assistant when a user ask for a particular action via an Invocation such as Ok Google, Talk to Keep Count. The Google Action called Keep Count would then take over. There in the action you can program it so that the google assistant interact with the user via a series of question and replies. You can find out how to do Google Action by visiting the Google Assistant developer website at https://developers.google.com/assistant. Happy to jump on a call if you need more specific directions. I am an expert in the field of Voice Technology. You can also learn from live streams on twitch at twitch.tv/goldzulu. Hope that helps.V"
-
Can I efficiently sum/count total clicks/conversions from a separate table?
This is a question better suited for stackoverflow. If you message me the schema for the two tables I could give you the exact query that you want.DP
-
What are the best ways to maximize database performance without simply adding tons of DRAM?
Can you describe the data in the table? I can think of a few solutions, most if which are based on the data you are storing. For example, chances are when you have large tables you are probably not doing any summarization of your data. If possible pre-compute the result and spit out the answer from a shorter table or cache (a cache which is generate at the time of the summary being generated, only useful if you often request this data shortly after it being created - doesn't sound like you needed to do this though) Another alternative would to be consider archiving of data. Is all the data required all the time? If not then consider a means of removing data you don't need (after x period of time) or switching to a new shard / table periodically. The other, more obvious, I would mention are to reconsider your existing indexes or partitioning your tables, if you have not done this already. You can start manually sharding tables across servers based on a hash of some kind but your Db is still relatively small (assuming you can summarize some of your data) and should not need this yet.AM
the startups.com platform
Copyright © 2025 Startups.com. All rights reserved.