July 2016
Intermediate to advanced
150 pages
4h 24m
English
Because TorqueBox can be packaged into an executable JAR file, it can be deployed much like a Warbler WAR file. You can even continue using the same Heroku repository.
Make sure your Heroku app is still attached to your Git repo by running this command and confirming that there is a heroku remote listed:
| | $ git remote -v |
If heroku is not a remote, run heroku git:remote to reattach the app you used in Chapter 3, Deploying a Rails Application.
Next, you’ll need to adjust the Procfile to run the TorqueBox JAR file. Open the file and put this code in it:
| | web: java -jar twitalytics.jar -p $PORT |
Commit the file to Git with these commands:
| | $ git add Procfile |
| | $ git commit |
Read now
Unlock full access