Host your own LanguageTool server on Heroku for free!
You need Heroku CLI.
- Clone this repository.
- Create an app on Heroku.
- Set git remote to Heroku
heroku git:remote -a your-app-name
. - Set stack to container
heroku stack:set container -a your-app-name
. - Deploy to Heroku
git push heroku main
.
You need Docker.
- Build the image and push to Container Registry
heroku container:push web -a your-app-name
. - Release the image
heroku container:release web
.
The program will automatically download ngram while the app is running. (see languagetool.sh) Depending on the download speed of Heroku & upload speed of LanguageTool's server, ngram will take a while until it is used. As Heroku file system is ephemeral, once the app is restarted, the ngram will be deleted and will be downloaded again on next start.
Inspired by silvio/docker-languagetool