Re: Play framework : Access to a file on the cedar filesystem
Hmmm... That is not the right path because it would assume that the app is right on the root of the file system which shouldn't be the case. So either you need another way to get the actual File path. Check out: http://stackoverflow.com/questions/4719891/how-to-get-real-path-of-the-app-in-the-play -James On 12/05/2011 03:39 PM, Lukasz Piliszczuk wrote: Hi, Play.applicationPath.getPath() returns "/app" which seems correct when I browse the cedar filesystem with the bash command. But when I try to get a file with a java.io.File it's dosen't working. For now I fixed the problem by switching to amazon s3 but I don't think it's proper for some case like generating a pdf with a specific font file which I need to include in my java code. This is something that should be directly available in the app for me. Thanks for your help, Lukas -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this discussion on the web visit https://groups.google.com/d/msg/heroku/-/hQ1yL9XjgmsJ. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Play framework : Access to a file on the cedar filesystem
Hi, Play.applicationPath.getPath() returns "/app" which seems correct when I browse the cedar filesystem with the bash command. But when I try to get a file with a java.io.File it's dosen't working. For now I fixed the problem by switching to amazon s3 but I don't think it's proper for some case like generating a pdf with a specific font file which I need to include in my java code. This is something that should be directly available in the app for me. Thanks for your help, Lukas -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this discussion on the web visit https://groups.google.com/d/msg/heroku/-/hQ1yL9XjgmsJ. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Play framework : Access to a file on the cedar filesystem
What does Play.applicationPath.getPath() get resolved to when running on Heroku? -James On 12/04/2011 01:53 PM, Lukasz Piliszczuk wrote: Hi, I cannot get any java.io.File when my application running. I have some png files located in my play app : "/app/my/package/file.png". I'm trying to access them in my class with the following code : new File(Play.applicationPath.getPath() + "/app/my/package/file.png) but I cannot get the file. I tried a lot of other paths : - "/app/app/my/package/file.png" - "~/app/app/my/package/file.png" - etc... Of course if I run play locally the path works fine. I've browsed the cedar filesystem with "heroku run bash" command and the file is correctly in the path : "/app/app/my/package/file.png". Thank you for your help, Lukas -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this discussion on the web visit https://groups.google.com/d/msg/heroku/-/6kARXqHCgywJ. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Anyone else have a problem with status.heroku lack of information?`
But does it matter? For me it's good to know there's something up if I'm seeing odd behaviour, even though I can't do anything about it. After two years of using Heroku, I've never seen an issue on status that I can fix, and generally don't care what the problem is other than knowing that Heroku are learning from it, and out of idle interest. Saying that, when things have gone bad, for instance when EC2 blew up last year, heroku have always posted a detailed synopsis... N On Dec 5, 2011 10:06 PM, "daudi" wrote: > There seems to be almost zero information content at > status.heroku.com. Does anyone have a better parser than mine? The > general posting format seems to be: > > posting @ t[0]: > ISSUE: We are observing increased [ server | HTTP | network | database > | routine] error [ rates (and | or) latencies ] to [ applications | > the Heroku API ]. We are investigating and will post additional > updates as we learn more. > > n-2 postings @ t[i]: > ISSUE: We are continuing to work on resolving the [ server | HTTP | > network | database | routing] issues. > [ > Applications are largely up | > the problems are largely isolated to our | > except for an extremely small number of requests | > problems seem to be isolated to intermittent problems with > | > it's really not such a big deal at all and we can't understand why > so many of you are even looking at status.heroku.com right now but > we'll write something reassuring here anyway > ], but we are still experiencing some performance degradation. We are > working to resolve this problem as quickly as possible. > > nth (and final) posting hours/days later @ t[n]: > We believe the incident is now entirely resolved. Error rates have > returned to nominal levels. We will continue to monitor the platform > and HTTP stack very closely, but at this time are discontinuing > tracking of this incident. > > Missing are the specifics: > what really happened? how bad was it? what broke? why? what fixed it? > > -- from a fan/customer/supporter of heroku > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Anyone else have a problem with status.heroku lack of information?`
Along those lines, is there a way to get alerts from heroku when there is an issue? This last issue had my site down for a bit, but thankfully the NewRelic alert let me know quickly, so I could get to work on routing to a backup server. Is there some heroku notification checkbox I missed somewhere? On Sun, Dec 4, 2011 at 11:19 PM, daudi wrote: > There seems to be almost zero information content at > status.heroku.com. Does anyone have a better parser than mine? The > general posting format seems to be: > > posting @ t[0]: > ISSUE: We are observing increased [ server | HTTP | network | database > | routine] error [ rates (and | or) latencies ] to [ applications | > the Heroku API ]. We are investigating and will post additional > updates as we learn more. > > n-2 postings @ t[i]: > ISSUE: We are continuing to work on resolving the [ server | HTTP | > network | database | routing] issues. > [ > Applications are largely up | > the problems are largely isolated to our | > except for an extremely small number of requests | > problems seem to be isolated to intermittent problems with > | > it's really not such a big deal at all and we can't understand why > so many of you are even looking at status.heroku.com right now but > we'll write something reassuring here anyway > ], but we are still experiencing some performance degradation. We are > working to resolve this problem as quickly as possible. > > nth (and final) posting hours/days later @ t[n]: > We believe the incident is now entirely resolved. Error rates have > returned to nominal levels. We will continue to monitor the platform > and HTTP stack very closely, but at this time are discontinuing > tracking of this incident. > > Missing are the specifics: > what really happened? how bad was it? what broke? why? what fixed it? > > -- from a fan/customer/supporter of heroku > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- Thanks, -John -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Overzealous .slugignore
Hello Heroku, I'm trying to ignore everything under the "./client" path in my application. I've added "client/*" to my .slugignore file, but this had adverse consequences of also excluding all the (essential) files in the "./public/client" path. How can I slug-ignore all of the files in the "./client" path without affecting the ones in "./public/client"? Thanks! -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
"Internal server error" when using "heroku db:push"
Hi everyone- I have a rails app & database that I'm trying to push to heroku. Everything seems to be working fine, except I can't seem to be able to use the taps gem to push my local postgres database to heroku. It just seems to trigger a generic error, with no indication as to what might be wrong. Also, no info is written to the logs at "heroku logs". Furthermore, can find no previous instance of this error in the heroku forums. There is a local session file created after the push attempt fails (i.e. push_201112041756.dat) It seems to contain a list of the tables in the database, a remote_url formatted like "http:// heroku:osui59a24am...@taps3.heroku.com" and a "completed_tables" values, which is always the empty list (which I'm guessing means that no tables were successfully pushed) Please, if anyone knows any additional steps I can take to diagnose this, or can tell me if I should inform the Heroku team about this, your help would be much appreciated! Here is the exact output at the command line: $ heroku db:push --confirm test5467-qa Loaded Taps v0.3.23 Auto-detected local database: postgres://zipn_user:###@127.0.0.1/zipn_dev?encoding=utf8 Warning: Data in the app 'test5467-qa' will be overwritten and will not be recoverable. Sending schema Schema: 0% | | ETA: --:--:-- Saving session to push_201112041756.dat.. !!! Caught Server Exception HTTP CODE: 503 html, body, iframe { margin: 0; padding: 0; height: 100%; } iframe { display: block; width: 100%; border: none; } Application Error https://s3.amazonaws.com/heroku_pages/error.html";> Application Error -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
RE: Load testing tools
I've used LoadStorm's service. Had a pretty good experience with that. -Anil > Date: Sat, 3 Dec 2011 12:42:35 -0500 > Subject: Re: Load testing tools > From: dcr...@thoughtbot.com > To: heroku@googlegroups.com > > I've heard good things about Blitz.io but haven't tried it yet. I'm > sure it's good. > > If for any reason you're looking for an alternative, we'd had good > luck with Apache Bench and the New Relic add-on: > > http://robots.thoughtbot.com/post/8392002973/7-minute-ab-impatient-mans-load-tests-for-a-heroku > > Almost certainly not as robust as Blitz but perhaps it's all you need. > > On Fri, Dec 2, 2011 at 6:36 PM, "Steven! Ragnarök" > wrote: > > On 12/2/11 3:26 PM, kowsik wrote: > >> > >> Try blitz.io - it's a Heroku add-on. The free plan gets you to run up > >> to 500 concurrent users against your app as many times as you want. > >> > >> http://devcenter.heroku.com/articles/blitz > > > > > > Kowsik, thanks I have no idea how I missed this. Was looking through addons > > specificially for this.. > > > > > >> > >> K. > >> --- > >> http://blitz.io > >> @pcapr > >> > >> On Fri, Dec 2, 2011 at 3:17 PM, "Steven! Ragnarök" > >> wrote: > >>> > >>> What does everyone use for load testing tools. We've got a REST API in > >>> Ruby > >>> and I want to give it a good stress test. > >>> > >>> Ideally we'd be able to specify sessions at the HTTP level rather than a > >>> capybara-esque DSL since we don't have views. > >>> -- > >>> Steven! Ragnarök > >>> T 408 256 0278 > >>> ste...@nuclearsandwich.com > >>> http://nuclearsandwich.com > >>> > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Heroku" group. > >>> To post to this group, send email to heroku@googlegroups.com. > >>> To unsubscribe from this group, send email to > >>> heroku+unsubscr...@googlegroups.com. > >>> For more options, visit this group at > >>> http://groups.google.com/group/heroku?hl=en. > >>> > >> > > > > > > -- > > Steven! Ragnarök > > T 408 256 0278 > > ste...@nuclearsandwich.com > > http://nuclearsandwich.com > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Heroku" group. > > To post to this group, send email to heroku@googlegroups.com. > > To unsubscribe from this group, send email to > > heroku+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/heroku?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Anyone else have a problem with status.heroku lack of information?`
There seems to be almost zero information content at status.heroku.com. Does anyone have a better parser than mine? The general posting format seems to be: posting @ t[0]: ISSUE: We are observing increased [ server | HTTP | network | database | routine] error [ rates (and | or) latencies ] to [ applications | the Heroku API ]. We are investigating and will post additional updates as we learn more. n-2 postings @ t[i]: ISSUE: We are continuing to work on resolving the [ server | HTTP | network | database | routing] issues. [ Applications are largely up | the problems are largely isolated to our | except for an extremely small number of requests | problems seem to be isolated to intermittent problems with | it's really not such a big deal at all and we can't understand why so many of you are even looking at status.heroku.com right now but we'll write something reassuring here anyway ], but we are still experiencing some performance degradation. We are working to resolve this problem as quickly as possible. nth (and final) posting hours/days later @ t[n]: We believe the incident is now entirely resolved. Error rates have returned to nominal levels. We will continue to monitor the platform and HTTP stack very closely, but at this time are discontinuing tracking of this incident. Missing are the specifics: what really happened? how bad was it? what broke? why? what fixed it? -- from a fan/customer/supporter of heroku -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Play framework : Access to a file on the cedar filesystem
Hi, I cannot get any java.io.File when my application running. I have some png files located in my play app : "/app/my/package/file.png". I'm trying to access them in my class with the following code : new File(Play.applicationPath.getPath() + "/app/my/package/file.png) but I cannot get the file. I tried a lot of other paths : - "/app/app/my/package/file.png" - "~/app/app/my/package/file.png" - etc... Of course if I run play locally the path works fine. I've browsed the cedar filesystem with "heroku run bash" command and the file is correctly in the path : "/app/app/my/package/file.png". Thank you for your help, Lukas -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this discussion on the web visit https://groups.google.com/d/msg/heroku/-/6kARXqHCgywJ. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Rails caching in mongo, across dynos
We pay Heroku for hosting our Rails app, with several dynos & workers, as well as MongoLab services, etc. Our app is on Cedar and we're looking to improve performance by implementing Rails caching in mongoDB. Will John Nunemaker's "bin" gem work best? (It works well in development.) Or is there a better option? Among other things, I'm concerned that cached information will not be shared across dynos if "bin" / Rails / heroku configs are not correct. Thanks for anyone who can help. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Logging Question
Thank Neil... appreciated.. will try and little trick... On Dec 5, 2:16 pm, Neil Middleton wrote: > I had an issue with Sinatra on Heroku not outputting it's own output to the > Heroku log file even though the Heroku router etc was logging just fine. By > sticking: > > $stdout.sync = true > > at the top of the application file, everything started working as expected. > Apparently it's some kind of STDOUT buffering problem and the Ruby MRI. > > Neil > > > > > > > > On Monday, 5 December 2011 at 19:11, Dave wrote: > > Hi, > > > I am using the heroku command logs -t in a terminal window and > > watching the logs scroll by... > > > Often I am seeing that my carefully placed puts "got here" type > > commands are just plain missing from the logs... if I refresh my > > browser to re-issue a certain route in Sinatra I might see all the > > output I want, but othertimes, it is just plain missing. > > > Does the log stream just skip entries at random or is there a better > > way to ensure I see ALL my entries? > > > Just curious... > > > -- > > You received this message because you are subscribed to the Google Groups > > "Heroku" group. > > To post to this group, send email to heroku@googlegroups.com > > (mailto:heroku@googlegroups.com). > > To unsubscribe from this group, send email to > > heroku+unsubscr...@googlegroups.com > > (mailto:heroku+unsubscr...@googlegroups.com). > > For more options, visit this group > > athttp://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Logging Question
I had an issue with Sinatra on Heroku not outputting it's own output to the Heroku log file even though the Heroku router etc was logging just fine. By sticking: $stdout.sync = true at the top of the application file, everything started working as expected. Apparently it's some kind of STDOUT buffering problem and the Ruby MRI. Neil On Monday, 5 December 2011 at 19:11, Dave wrote: > Hi, > > I am using the heroku command logs -t in a terminal window and > watching the logs scroll by... > > Often I am seeing that my carefully placed puts "got here" type > commands are just plain missing from the logs... if I refresh my > browser to re-issue a certain route in Sinatra I might see all the > output I want, but othertimes, it is just plain missing. > > Does the log stream just skip entries at random or is there a better > way to ensure I see ALL my entries? > > Just curious... > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@googlegroups.com > (mailto:heroku@googlegroups.com). > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com > (mailto:heroku+unsubscr...@googlegroups.com). > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Logging Question
Hi, I am using the heroku command logs -t in a terminal window and watching the logs scroll by... Often I am seeing that my carefully placed puts "got here" type commands are just plain missing from the logs... if I refresh my browser to re-issue a certain route in Sinatra I might see all the output I want, but othertimes, it is just plain missing. Does the log stream just skip entries at random or is there a better way to ensure I see ALL my entries? Just curious... -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Load testing tools
On Sat, Dec 3, 2011 at 12:42 PM, Dan Croak wrote: > I've heard good things about Blitz.io but haven't tried it yet. I'm > sure it's good. > > If for any reason you're looking for an alternative, we'd had good > luck with Apache Bench and the New Relic add-on: > > > http://robots.thoughtbot.com/post/8392002973/7-minute-ab-impatient-mans-load-tests-for-a-heroku > > Almost certainly not as robust as Blitz but perhaps it's all you need. > > Whoa, I'm glad I saw this thread. Awesome stuff guys! -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.