Has anybody tried to setup sbt to work with Google App Engine? I dream about using development server auto-reloading after source changes.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For a quick demo you can clone or download what I have done here.
A minimalistic sbt-appengine-plugin example from scratch
Clone the sbt-appengine-plugin from GitHub
Publish the plugin locally so that you can use it in your own projects
Create a directory for a new project
Configure the new project
Tell sbt about the plugin you want to use
project.scala
plugins.scala
Add a very simple servlet
HelloWorld.scala
Add some more configuration files
web.xml
appengine-web.xml
And finally run sbt and start the project
Point your browser to http://localhost:8080/ and you should see Hello, world
To watch for changes in source files I have experimented a little with ~prepare-webapp after starting the server, but I haven’t gotten it working properly.