Has anybody tried to setup sbt to work with Google App Engine? I dream about using development server auto-reloading after source changes.
相关问题
- Unusual use of the new keyword
- java.lang.NullPointerException at java.io.PrintWri
- Get Runtime Type picked by implicit evidence
- __call__() missing 1 required positional argument:
- What's the point of nonfinal singleton objects
相关文章
- Gatling拓展插件开发,check(bodyString.saveAs("key"))怎么实现
- RDF libraries for Scala [closed]
- Why is my Dispatching on Actors scaled down in Akk
- Is there a size limit for HTTP response headers on
- How do you run cucumber with Scala 2.11 and sbt 0.
- appcfg.py command not found
- GRPC: make high-throughput client in Java/Scala
- Google app engine datastore string encoding proble
Here's a template project using sbt + appengine which can be used to get started:
https://github.com/mtkopone/sbt-scalatra-appengine-template
Also, instead of having to publish the sbt-appengine-plugin locally, you can use the following in Plugins.scala:
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.
There is now a new version of the sbt-appengine plugin which works with newer versions of SBT (0.10+) at https://github.com/sbt/sbt-appengine. There's also a trivial sample app using it at https://github.com/sbt/sbt-appengine.
I just converted a project that was created with Eclipse:
Found this post in Google search. Since all provided examples are quite old I created two sample projects based on what I found online
Sample GAE app written in Scala using Scalatra 2.0.5, Scala 2.10.3 and SBT 0.13 https://github.com/cppexpert/scalatra-google-app-engine-app
Sample GAE app written in Scala using Unfiltered 0.7, Scala 2.10.3 and SBT 0.13 https://github.com/cppexpert/sample-scala-google-app-engine-app
Here is an sbt-appengine-plugin on Github that I'm trying to get to work right now. I will post any progress.
You will find an example by the author of the plugin here: http://gist.github.com/377611
Especially in the plugins configuration, the setting of 1.1-SNAPSHOT (mentioned above) or 2.1-SNAPSHOT (mentioned in the sbt-apppengine-plugin README) did not work.
The example shows:
And this worked for me.