Or follow these steps after installing the Heroku Toolbelt:
$ git clone https://github.com/kissaten/wildfly-swarm-jpa-jaxrs
$ cd wildfly-swarm-jpa-jaxrs
$ heroku create
$ git push heroku master
$ heroku open
This example uses ShrinkWrap to create an archive. For a more standard layout see the Wildfly Swarm JAX-RS example.