Search code examples
javaherokuplayframeworkgreenscript

Greenscript in Heroku


I'm having an odd issue with Greenscript (1.2.6l) in Heroku using Play 1.2.3 for Java.

Locally, using the Play launcher or Foreman start, in both modes (DEV and PROD) Greenscript works fine, compresses files and loads the css/javascript.

In Heroku I get this:

2011-11-28T19:18:34+00:00 heroku[router]: GET XXXXXX.herokuapp.com/public/gs/b097436f-9941-4d07-98cf-31bd574e6351.js dyno=web.1 queue=0 wait=0ms service=26ms status=404 bytes=4222

As you can see, a 404 error when trying to load a compressed js file. This error happens setting Greenscript to work with file-system or in-memory storage of files.

Anyone has had a similar issue and knows the solution? Or, if not, can anyone propose an alternative for Greenscript?


Solution

  • If you are running on a cluster, then there will be an issue. Checkout https://github.com/greenlaw110/greenscript/issues/30