mvn package
-
Linux/Mac
export MONGOHQ_URL=mongodb://127.0.0.1:27017/test
-
Windows
set MONGOHQ_URL=mongodb://127.0.0.1:27017/test
Now you can run your webapp with:
-
Linux/Mac
$ sh target/bin/webapp
-
Windows
$ target\bin\webapp.bat
http://localhost:8080/
Install the Heroku Toolbelt
heroku login
In the root directory of this project do the following:
heroku create --stack cedar --addons mongohq:free
git push heroku master
heroku open