Watir app deployed to heroku
Yes, it is possible! Just follow steps from this article: https://github.com/edelpero/watir-examples/blob/master/watir_on_heroku.md.
Shortly:
$ heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git$ touch .buildpacks
Then add to your newly created directory .buildpacks these lines:
https://github.com/heroku/heroku-buildpack-rubyhttps://github.com/stomita/heroku-buildpack-phantomjs
Then in terminal:
$ heroku config:set PATH="/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin"$ heroku config:set LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib:/app/vendor/phantomjs/lib
Then push these changes to Heroku, and
Watir::Browser.new :phantomjs
with usual Watir code following should work!