{"issue":{"state":"open","created_at":"2011-11-19T16:39:54Z","updated_at":"2011-11-19T22:01:31Z","comments":13,"user":{"gravatar_id":"12a179a9307dfae61af4bc150931cddb","id":17598,"url":"https://api.github.com/users/pvillega","login":"pvillega","avatar_url":"https://secure.gravatar.com/avatar/12a179a9307dfae61af4bc150931cddb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm using greenscript v1.2.6l with Play 1.2.3\r\n\r\nWhen the app is deployed in Heroku, the css/javascript generated can't be found, even if I enable the inmemory caching:\r\n\r\n#added to application.conf\r\ngreenscript.cache.inmemory=true\r\n\r\n\r\nSetting the following flags:\r\n\r\ngreenscript.minimize=false\r\ngreenscript.compress=false\r\n\r\ndisables the Javascript processing but NOT the css processing, so the error persists.\r\n\r\nSTEPS TO REPRODUCE\r\n- create a free Heroku app\r\n- add some javascript and css to be compressed with Greenscript\r\n- publish the application in Heroku\r\n\r\nISSUES\r\n\r\nIt seems the in-memory caching is not working. That should be fixed\r\n\r\nDisabling minimization does not disable css processing\r\n","assignee":null,"id":2288825,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":28,"title":"Greenscript 1.2.6l doesn't work in Heroku","closed_at":null,"html_url":"https://github.com/greenlaw110/greenscript/issues/28","milestone":null,"url":"https://api.github.com/repos/greenlaw110/greenscript/issues/28"},"action":"created","comment":{"created_at":"2011-11-19T22:01:31Z","updated_at":"2011-11-19T22:01:31Z","user":{"gravatar_id":"00832b0bc725df401bdec90786388fda","id":216930,"url":"https://api.github.com/users/greenlaw110","login":"greenlaw110","avatar_url":"https://secure.gravatar.com/avatar/00832b0bc725df401bdec90786388fda?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Strange, there is one line shows that route has been updated:\n\n2011-11-19T21:54:02+00:00 app[web.1]: 21:54:02,325 INFO  ~ route added:\n/public/gs/{key} handled by greenscript.Service.getInMemoryCache\n\nHowever, the request has not been routed to that controller at all.\n\nAs a comparison, my console shows:\n\n08:49:25,983 INFO  ~\n[{module:greenscript-1.2.6l}/app/controllers/greenscript/Service.java:14|19]\ngetInMemoryCache() :: service inmeory greenscript request:\ncb3fe4d1-f27e-489e-a865-bf05584eb5a1.css\n08:49:25,984 INFO  ~\n[{module:greenscript-1.2.6l}/app/controllers/greenscript/Service.java:16|19]\ngetInMemoryCache() :: content from inmeomry cache: /*\n-----------------------------------------------------------------------\n...\n\nOn Sun, Nov 20, 2011 at 8:55 AM, Pere Villega <\nreply@reply.github.com\n> wrote:\n\n> New logs:\n>\n> 2011-11-19T21:54:00+00:00 heroku[web.1]: Starting process with command\n> `play run --http.port=53918 --%prod -Dprecompiled=true`\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,081 INFO  ~ Starting /app\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,083 INFO  ~ Module\n> betterlogs is available (/app/modules/betterlogs-1.0)\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,083 INFO  ~ Module pdf is\n> available (/app/modules/pdf-0.7)\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,084 INFO  ~ Module\n> greenscript is available (/app/modules/greenscript-1.2.6l)\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,084 INFO  ~ Module PayPal\n> is available (/app/modules/PayPal-0.1)\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,084 INFO  ~ Module\n> cobertura is available (/app/modules/cobertura-2.1)\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,085 INFO  ~ Module mockito\n> is available (/app/modules/mockito-0.1)\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,310 INFO  ~\n> GreenScript-1.2.6m1> dependency loaded\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,311 INFO  ~\n> GreenScript-1.2.6m1> initialized\n> 2011-11-19T21:54:01+00:00 app[web.1]: 21:54:01,590 WARN  ~ Using\n> implementation version: Rhino 1.6 release 7 2007 08 19\n> 2011-11-19T21:54:02+00:00 app[web.1]: 21:54:02,324 INFO  ~ set inmemory\n> cache: true\n> 2011-11-19T21:54:02+00:00 app[web.1]: 21:54:02,324 INFO  ~\n> GreenScript-1.2.6m1> minimizer initialized\n> 2011-11-19T21:54:02+00:00 app[web.1]: 21:54:02,325 INFO  ~ route added:\n> /public/gs/{key} handled by greenscript.Service.getInMemoryCache\n> 2011-11-19T21:54:02+00:00 app[web.1]: 21:54:02,486 INFO  ~ Added {QA sa=\n> mc7.ec2.northscale.net/10.82.127.172:11211, #Rops=0, #Wops=0, #iq=0,\n> topRop=null, topWop=null, toWrite=0, interested=0} to connect queue\n> 2011-11-19T21:54:02+00:00 app[web.1]: 21:54:02,489 INFO  ~ Connected to\n> memcached\n> 2011-11-19T21:54:02+00:00 app[web.1]: 21:54:02,496 INFO  ~ Connection\n> state changed for sun.nio.ch.SelectionKeyImpl@69b01afa\n> 2011-11-19T21:54:02+00:00 app[web.1]: 21:54:02,576 INFO  ~ Authenticated\n> to mc7.ec2.northscale.net/10.82.127.172:11211\n> 2011-11-19T21:54:02+00:00 app[web.1]: 21:54:02,915 INFO  ~ Connected to\n> jdbc:postgresql://ec2-107-22-181-224.compute-1.amazonaws.com/nwfkatnlfq\n> 2011-11-19T21:54:04+00:00 app[web.1]: 21:54:04,096 WARN  ~ Defaults\n> messsages file missing\n> 2011-11-19T21:54:04+00:00 app[web.1]: 21:54:04,333 INFO  ~\n> [/app/controllers/initialize/InitController.java:167] doJob() :: End of\n> application initialization\n> 2011-11-19T21:54:04+00:00 app[web.1]: 21:54:04,439 INFO  ~ Listening for\n> HTTP on port 53918 ...\n> 2011-11-19T21:54:05+00:00 heroku[web.1]: State changed from starting to up\n> 2011-11-19T21:54:18+00:00 app[web.1]: 21:54:18,646 INFO  ~\n> [/app/controllers/support/AOPController.java:22] beforeCall() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 (html) ENTER action: Application.index\n> (url: GET /) with params: {body=}\n> 2011-11-19T21:54:18+00:00 app[web.1]: 21:54:18,668 INFO  ~\n> [/app/controllers/CommonController.java:41] commonData() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 -- CommonController commonData method\n> executing 476 es\n> 2011-11-19T21:54:18+00:00 app[web.1]: 21:54:18,732 INFO  ~\n> [/app/controllers/support/AOPController.java:22] beforeCall() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 (html) ENTER action: Application.index\n> (url: GET /) with params: {body=}\n> 2011-11-19T21:54:21+00:00 app[web.1]: 21:54:21,637 INFO  ~\n> [/app/controllers/support/AOPController.java:30] afterCall() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 (html) END action: Application.index\n> (url: GET /) code: 200 - chunked: false\n> 2011-11-19T21:54:21+00:00 app[web.1]: 21:54:21,638 INFO  ~\n> [/app/controllers/support/AOPController.java:30] afterCall() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 (html) END action: Application.index\n> (url: GET /) code: 200 - chunked: false\n> 2011-11-19T21:54:22+00:00 heroku[router]: GET\n> billeteo.herokuapp.com/public/gs/83aea799-df22-42c8-a31d-6a9d466d4cae.cssdyno=web.1 queue=0 wait=0ms service=247ms status=404 bytes=4222\n> 2011-11-19T21:54:22+00:00 heroku[router]: GET\n> billeteo.herokuapp.com/public/gs/bef7256b-ad43-45fe-9eb3-91bedac59c4b.jsdyno=web.1 queue=0 wait=0ms service=37ms status=404 bytes=4222\n> 2011-11-19T21:54:23+00:00 heroku[router]: GET\n> billeteo.herokuapp.com/public/gs/8f863214-942a-445c-ae4e-7c6dc46441dd.jsdyno=web.1 queue=0 wait=1ms service=36ms status=404 bytes=4222\n> 2011-11-19T21:54:24+00:00 app[web.1]: 21:54:24,528 INFO  ~\n> [/app/controllers/support/AOPController.java:22] beforeCall() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 (html) ENTER action: Application.index\n> (url: GET /) with params: {body=}\n> 2011-11-19T21:54:24+00:00 app[web.1]: 21:54:24,529 INFO  ~\n> [/app/controllers/CommonController.java:41] commonData() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 -- CommonController commonData method\n> executing 476 es\n> 2011-11-19T21:54:24+00:00 app[web.1]: 21:54:24,548 INFO  ~\n> [/app/controllers/support/AOPController.java:22] beforeCall() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 (html) ENTER action: Application.index\n> (url: GET /) with params: {body=}\n> 2011-11-19T21:54:24+00:00 heroku[router]: GET\n> billeteo.herokuapp.com/public/gs/83aea799-df22-42c8-a31d-6a9d466d4cae.cssdyno=web.1 queue=0 wait=0ms service=32ms status=404 bytes=4222\n> 2011-11-19T21:54:24+00:00 heroku[router]: GET\n> billeteo.herokuapp.com/public/gs/5aaea71e-11ea-4d18-beb3-ffb6c74bfdd9.jsdyno=web.1 queue=0 wait=0ms service=49ms status=404 bytes=4222\n> 2011-11-19T21:54:24+00:00 app[web.1]: 21:54:24,639 INFO  ~\n> [/app/controllers/support/AOPController.java:30] afterCall() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 (html) END action: Application.index\n> (url: GET /) code: 200 - chunked: false\n> 2011-11-19T21:54:24+00:00 app[web.1]: 21:54:24,640 INFO  ~\n> [/app/controllers/support/AOPController.java:30] afterCall() :: Session:\n> f1603b41-1b0c-4b83-8c93-25a6c322a4e0 (html) END action: Application.index\n> (url: GET /) code: 200 - chunked: false\n> 2011-11-19T21:54:24+00:00 heroku[router]: GET\n> billeteo.herokuapp.com/public/gs/8f863214-942a-445c-ae4e-7c6dc46441dd.jsdyno=web.1 queue=0 wait=0ms service=32ms status=404 bytes=4222\n>\n>\n> Still 404. (I won't be able to post more logs for the next 12 hours, sorry\n> about that. And THANKS for your help!)\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/greenlaw110/greenscript/issues/28#issuecomment-2801142\n>","id":2801172,"url":"https://api.github.com/repos/greenlaw110/greenscript/issues/comments/2801172"}}