Re: Using Root domain CNAME for Heroku app
Hi Mirko/all, Sorry to keep the thread alive Nothing is preventing you from pointing mydomain.com at Heroku as an a record/ ip address. They suggest using a cname so that you won't be affected by an ip address change. Cheers, Keenan On Nov 3, 2008, at 4:51 PM, Mirko [EMAIL PROTECTED] wrote: Sorry about reviving an old thread, but I'd also like to vote +1 for multiple domain names. Even better, ideally I would like to be able to point an A-record at an IP address, rather than pointing a CNAME to heroku.com. I understand that some registrars allow root level CNAMEs, but this seems to interfere with MX records and therefore is not optimal. I am currently pointing www.mydomain.com to Heroku and redirecting mydomain,com/* to www.mydomain.com/* via an Apache site I have setup on a different host, but this solution is a bit roundabout and also not very robust, and I would much rather make mydomain.com the canonical hostname and set up a rewrite from www to that. -Mirko On Sep 25, 1:37 pm, Owen Dall [EMAIL PROTECTED] wrote: Yes, definitely. We are about to consider pushing several Hobo apps to Heroku when we get the cycles in the next two mongths or so. Owen On Thu, Sep 25, 2008 at 11:42 AM, Botah [EMAIL PROTECTED] wrote: Adam +1 on the multiple domain name on same heroku instance feature request. On Aug 17, 10:15 pm, Adam Wiggins [EMAIL PROTECTED] wrote: On Sat, Aug 16, 2008 at 10:31 AM, oneup [EMAIL PROTECTED] wrote: I want to have multiple domains/subdomains pointing to a single heroku app. Is this possible? Not currently. If a lot of people want this we might consider adding it. Adam --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~--~~~~--~~--~--~---
Re: Rails 2.1.1 Available?
I changed the version to 2.1 and it worked fine --Keenan On Nov 13, 2008, at 7:56 PM, Matthew Moore [EMAIL PROTECTED] wrote: I uploaded my first app to Heroku (yay!!), but it seems like Heroku isn't running with Rails 2.1.1 (the current release). Missing the Rails 2.1.1 gem. Please `gem install -v=2.1.1 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. Heroku supports Rails version 2.0.2 and 2.1. Update RAILS_GEM_VERSION in your config/environment.rb to select one of these versions. I take it I can freeze rails if I want to, to get 2.1.1, right? Are there any plans to get Rails 2.1.1 up on Heroku builtin? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~--~~~~--~~--~--~---
Re: cname issue on my server
Hi Mike, I had a similar looking mail setup when I setup Heroku for my root level domain. Is it possible you setup an alias for your root domain and not the sub domain? In Godaddy I only entered the subdomain part (e.g.: status) and not the full made (status.survey.com) But that may just be a different problem. Make sure your mail is setup to be survey.com and not status.survey.con. I think mail systems can get confused with an mx record that points to a domain that is also a cname Then again, the fail may just be the prppogatipn delay Hope that helps a little, Keenan On Nov 20, 2008, at 3:31 PM, Botah [EMAIL PROTECTED] wrote: I have configured my cname for a sub domain to use heroku. for my app: sastatus.heroku.com if I try to save a custom domain name as: status.surveyanalytics.com I get an error stating my cname is not correct and I should run the following command. But from what I can see via the output of the command everything is checking out OK. host status.surveyanalytics.com status.surveyanalytics.com is an alias for heroku.com. heroku.com has address 75.101.142.103 heroku.com has address 75.101.141.116 heroku.com mail is handled by 10 aspmx5.googlemail.com. heroku.com mail is handled by 1 aspmx.l.google.com. heroku.com mail is handled by 5 alt1.aspmx.l.google.com. heroku.com mail is handled by 5 alt2.aspmx.l.google.com. heroku.com mail is handled by 10 aspmx2.googlemail.com. heroku.com mail is handled by 10 aspmx3.googlemail.com. heroku.com mail is handled by 10 aspmx4.googlemail.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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~--~~~~--~~--~--~---
Re: database configuration? - Can't connect to local MySQL server through socket
That is a little strange as I thought Heroku was running postgress Maybe you checked in the database config? Or a separate plugin expects it? Or you are directly calling connect on active record base? On Nov 22, 2008, at 4:05 AM, Nate Clark [EMAIL PROTECTED] wrote: I must be missing something here ... I've imported my app, deploying it via git, and when Heroku tries to run the migrations I get: Running migrations... rake aborted! Can't connect to local MySQL server through socket '/var/run/mysqld/ mysqld.sock' (2) I was under the impression that the database was set up automatically by Heroku. I don't see anywhere I'm supposed to create or configure a database server. What am I missing? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~--~~~~--~~--~--~---
Re: Run Sinatra
You thinking the whole rack stack? Newest rails is 100% rack as are all other ruby stacks. (that is not me saying this is trivial by any means) Again. Heroku is great. Thanks On Dec 10, 2008, at 8:16 PM, Philipe Farias [EMAIL PROTECTED] wrote: Hi folks from Heroku, Is there any planning to get Sinatra running on Heroku? Just saw the presentation that Adam and Blake gave on RubyConf (on Confreaks site) and got really excited about it. Congrats for the presentation 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~--~~~~--~~--~--~---
Re: custom domain
Hi. I found most of the caching was on my local machine or on my isp. The changes didn't show up on my local machine but they showed up sooner on my work compuer (different computer, different isp) I did something similar. I posted my information so far on http://reflectivepixel.com/site/dns If anyone gets email working, please let me know. It thinks I'm stating mx records for heroku not my domain --Keenan On Dec 11, 2008, at 7:55 PM, Mike Porter wrote: it took me like 48 hrs On Thu, Dec 11, 2008 at 4:07 PM, h han.y...@gmail.com wrote: Does anyone know how long it will take for heroku to propagate domain name settings? I applied settings on my godaddy account and everything seems to be in order. The output in my terminal says: host www.mydomain.com www.mydomain.com is an alias for mydomain.com. mydomain.com is an alias for heroku.com. heroku.com has address 75.101.141.116 heroku.com has address 75.101.142.103 Yet, when I type in either mydomain.com or www.mydomain.com on the custom domain name field in settings, I keep getting the error message saying its not configured. Have I done something wrong? Does anyone who has successfully pointed a godaddy domain to a heroku application have any advice to offer? Thank you for the help in advance, HY --~--~-~--~~~---~--~~ 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: custom domain
Thanks HY. I had thought email wasn't working. Turns out that regardless of dig suggesting email wouldn't work. But in fact email works just fine. Best of luck with the site. --K On Dec 15, 2008, at 9:15 PM, h wrote: I used Google Applications for this and was able to get it working with my GoDaddy account following the Google Applications. Now my mydomain.com accounts are all being routed to Google for free e-mail hosting via Gmail while the site itself is served up on Heroku (sort- of). (and to follow-up things were playing nice after about 24 hours). Having said all of this, I was a little shocked that using Heroku to develop an essentially static site - I was able to hit resource limits. We're not talking about massive amounts of data being moved back and forth - the site was literally static with 1 image. I wrote to Heroku about blessing the site (but after 4 days I've still not received a response). I was hoping to go-live with Heroku on a couple of different projects that I had, but without the ability to respond to a few web page hits or send e-mail, it looks like my search for a Rails host continues. HY On Dec 11, 5:40 pm, Keenan Brock kee...@thebrocks.net wrote: Hi. I found most of the caching was on my local machine or on my isp. The changes didn't show up on my local machine but they showed up sooner on my work compuer (different computer, different isp) I did something similar. I posted my information so far onhttp://reflectivepixel.com/site/dns If anyone gets email working, please let me know. It thinks I'm stating mx records for heroku not my domain --Keenan On Dec 11, 2008, at 7:55 PM, Mike Porter wrote: it took me like 48 hrs On Thu, Dec 11, 2008 at 4:07 PM, h han.y...@gmail.com wrote: Does anyone know how long it will take for heroku to propagate domain name settings? I applied settings on my godaddy account and everything seems to be in order. The output in my terminal says: hostwww.mydomain.com www.mydomain.comis an alias for mydomain.com. mydomain.com is an alias for heroku.com. heroku.com has address 75.101.141.116 heroku.com has address 75.101.142.103 Yet, when I type in either mydomain.com orwww.mydomain.comon the custom domain name field in settings, I keep getting the error message saying its not configured. Have I done something wrong? Does anyone who has successfully pointed a godaddy domain to a heroku application have any advice to offer? Thank you for the help in advance, HY --~--~-~--~~~---~--~~ 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: CSS files not updating
Hi DAZ, You may want to run in development mode? In development mode, the stylesheet tag, tweaks the stylesheet name different style.css?1242346 - that last number is based upon the mod date of the stylesheet . So when you change the sheet, the browser requests a different file and you don't have that problmem. Sometimes when I am working with stylesheets, I make the mods directly in my individual page rather than in the main applicaiton file. in my layout I typically have a head title... %= stylesheet_link_tag 'application' % %= yield :header -% and on my individual page I'll have: % content_for :head do % style /style % end -% I tweak the css in the individual page until things are what I want. Then I cut and paste that stuff into the public/stylesheets/ application.css file. [I usually use the application name and not the word 'applicaiton' but everyone does things a little differently.] Hope that helps, Keenan On Jan 8, 2009, at 6:13 AM, DAZ daz4...@gmail.com wrote: I'm having a bit of trouble with CSS files not always displaying the most recent styles after I edit the file. The stylesheets seem to be being cached on the server side (clearing my browser cache seems to make no difference). Is there any way to get the app to use the most up to date CSS files? cheers, DAZ --~--~-~--~~~---~--~~ 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: within my app, a login is not working
Hi If you put those methods into your model, the rails console acts as your admin interface. There you can create some logins. You can also use migrations to create those users for you. It would be the same code, just one would be run manually and the other automatically. Dave Thomas said the pragmatic programmer book store only had a console admin interface for years. Not sure if hey have even added a web admin interface. You can access the console as an option in the lower left corner of the edit interface Hope that helps Keenan On Jan 8, 2009, at 3:55 PM, HazardJ james.g.haz...@gmail.com wrote: Hi everyone, Heroku is really great. So good that I was able to upload and get my application working, though I'm very, very inexperienced. Bravo. I've got a problem that escapes me -- when I reinstalled the app (tarballed upload) my login _within_the_app (SessionsController) won't let me log in anymore. It doesn't like any of the user / password combinations. The /session page comes up but I go into a samsara of login where it gently declines to accept any of my user/password combinations. As I was uploading the many different times, I did get some kind of error a few times. But others were smooth, including the most recent. Tests I've done so far: I've checked the original on my computer (0.0.0.0:3000). It works fine. I've tarballed in tar.gz (both with log and tmp and without) and in .zip any number of times. No luck. I'm used to making mistakes and have tried it over and again. The files seem to all be there, including the sqlite3 file. Any thoughts? Thanks, James --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Heroku | YamlDb for Database-Independent Data Dumps
This talks about load and dumping data I have done with a local sqlite database and Heroku. --K http://blog.heroku.com/archives/2007/11/23/yamldb_for_databaseindependent_data_dumps/ --~--~-~--~~~---~--~~ 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: within my app, a login is not working
James, My suggestion is to run sqlite locally. Only if you are using a lot of raw SQL would I suggest postgress locally. I can see why someone would suggest the opposite. But why not just focus on rails for now? Once it becomes a big time app, then worry about the version of the database. Indexes however, do need attention. Not today. But soon. Good news is migrations handle those in a database neutral way. Beat of luck, Keenan On Jan 8, 2009, at 5:50 PM, HazardJ james.g.haz...@gmail.com wrote: Thanks very much. I confirmed that you are right by getting rid of the login -- the database is indeed empty of my document content. I presume that to get local and Heroku to work alike I need to use Postgres locally? And then git from one to the other? Is there a simpler way of getting information from sqlite to Postgres? On Jan 8, 2:22 pm, Paul Clegg dotdotdotp...@gmail.com wrote: The database on the Heroku side is not the same as what you use on your local development, regardless of whether or not your sqlite database is checked in or not (it probably shouldn't be). Heroku uses a Postgres database, which will, by definition, be separate and different than your local development Sqlite database. So it's probably failing because your login data doesn't exist on the Heroku side of things. ...Paul On Thu, Jan 8, 2009 at 12:55 PM, HazardJ james.g.haz...@gmail.com wrote: Hi everyone, Heroku is really great. So good that I was able to upload and get my application working, though I'm very, very inexperienced. Bravo. I've got a problem that escapes me -- when I reinstalled the app (tarballed upload) my login _within_the_app (SessionsController) won't let me log in anymore. It doesn't like any of the user / password combinations. The /session page comes up but I go into a samsara of login where it gently declines to accept any of my user/password combinations. As I was uploading the many different times, I did get some kind of error a few times. But others were smooth, including the most recent. Tests I've done so far: I've checked the original on my computer (0.0.0.0:3000). It works fine. I've tarballed in tar.gz (both with log and tmp and without) and in .zip any number of times. No luck. I'm used to making mistakes and have tried it over and again. The files seem to all be there, including the sqlite3 file. Any thoughts? Thanks, James --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Tip for changing cname at godaddy
Hi All, If you are pointing a top level domain (mysite.com) to heroku and using godaddy as your registrar, then this message is for you. First go to the total dns control pannel. go into the expert mode. ensure all MX and TXT records do not have your domain name in them ( mysite.com) Instead, they need to have @. After those changes have been committed, then you are able to change the CNAME record with mysite.com and herokugarden.com Please share any tips / problems you may have. I'm trying to keep my information up to date on http://reflectivepixel.com/ (dns) --Keenan --~--~-~--~~~---~--~~ 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: Problems with herokugarden
I had an auth issue. I did a keys add command and it seemed to fix my problem May want to try that too --Keenan On Jan 16, 2009, at 11:39 AM, Morten Bagai mor...@heroku.com wrote: Hi Ed, We've had a few users who have been experiencing auth issues. Are you having trouble logging in via the web ui at herokugarden.com/login, or are you having trouble authenticating via the gem? Sorry about the trouble. We'll work as fast as we can to fix it. /Morten On Jan 16, 2009, at 7:50 AM, Ed Jones wrote: Why would my login passwords not now work? I didn't see any instructions for the switch. I'm using acts_as_authenticated. On Jan 16, 7:56 am, justin justin.worr...@gmail.com wrote: Hi, I have an app [myseasonbets.heroku.com] which has been migrated to herokugarden in the last day or so. I've downloaded the new herokugarden gem, have pulled my app onto my local machine and am now testing whether I can deploy changes. Two problems: - when I 'git push' my app, it seems to push okay but I get an 'App not found' message in the trace - when I login to herokugarden.com to see if my changes have been made, the editing browser window doesn't load properly Thanks, Justin --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Darn Internal server error
Hi Heroku Gurus, Internal server error for http://reflectivepixel.com/ Seems like this is spreading around. :( Anything we can do to help you diagnose the problem? --Keenan --~--~-~--~~~---~--~~ 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: nokogiri gem
Hi, I read that nokogiri is a drop in replacement for hpricot. Not sure exactly how close the APIs are. Have you tried your app with hpricot? It is at least a pure ruby implementation. Making it easier to deploy to a server where you can not compile c gems. Not sure if hpricot has acceptable performance or if it meets your needs, but thought it may be worth a shot. --Keenan On Jan 20, 2009, at 10:10 PM, dong wrote: I have just deployed my first Heroku application. It needs the nokogiri gem. It is not available on Heroku. I develop on Windows locally, so I can not upload my local copy of the gem. can this gem be made available on Heroku? or any suggestions on how do I find the *nix version of the gem, and upload and install it on Heroku? thanks Dong --~--~-~--~~~---~--~~ 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: Authentication failed
Hi, Thought I remembered ssh requests that the .ssh directory is 700 and the files are 600. Some aspects of ssh won't work if they don't have the correct permissions. Besides remembering to do the add keys, Heroku/garden implementation of ssh has been smooth for me. Did never get the Heroku - garden project conversion to work but a fresh check out fixed it --Keenan On Jan 25, 2009, at 4:57 PM, Owen od...@csrees.usda.gov wrote: also needed to add write access to everyone on the Mac to known_hosts For Mac newbies like me this will help to see the f__g hidden files/ folders like .sh http://www.brooksandrus.com/blog/2007/03/23/mac-os-x-show-hide-hidden-files-in-finder/ $ chmod go+rw known_hosts On Jan 25, 3:09 pm, Owen od...@csrees.usda.gov wrote: Mmmm...just found the same problem fixed by: $ sudo gem install herokugarden On Jan 22, 7:59 pm, davidp diecinu...@gmail.com wrote: worked like a charm :) thanks a lot! On Jan 22, 11:52 am, Sean Scally sean.sca...@gmail.com wrote: I experienced a similar problem, but I figured out that since I signed up on herokugarden I had to use the herokugarden gem, not the heroku gem. I cannot sign in with the heroku gem but the garden one does work. I don't know if this applies to you, however, but since it sounded familiar I figured I might as well post. -Sean On Jan 22, 1:27 pm, davidp diecinu...@gmail.com wrote: hi there, I'm running into an 'Authentication Failed' error when I try to create a new project through the heroku gem and it asks me for the heroku credentials, even though I enter them properly (pretty sure about that), I get a 'Authentication Failed' error. --- --- --- --- --- --- -- David-Pascual:ocproject diecinueve$ heroku create ocproject Enter your Heroku credentials. Email: m...@e.mail Password: Uploading ssh public key /Users/diecinueve/.ssh/id_rsa.pub Authentication failed --- --- --- --- --- --- --- I've double-checked the ssh public key exists I've read something about this bug/error here:http://www.mail-archive.com/heroku@googlegroups.com/msg00838.htmlbut none of the solutions proposed work for me :( any clues if this is something I'm doing wrong? has anyone experienced the same problem? thanks a lot and keep up the great work! :) david. --~--~-~--~~~---~--~~ 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: Database Missing?!
Hello Justin, The database file is created automatically for you. Their 'cloud' infrastructure takes care of that for you. It is best to not check that file in. --Keenan On Jan 30, 2009, at 2:31 PM, justindz wrote: Okay, looks like my database.yml file is gone from my config directory. However, I didn't delete as far as I know and there is no record in the revision tool of me having deleted it in any time frame nearby when the data suddenly vanished. So, I assume that my data probably is fine and the UI is just not hooked up to the instance. Can anyone at Heroku (or anyone) help me figure out how to re-create the appropriate file so I can get my app running again? Thanks! On Jan 28, 6:53 pm, justindz justi...@gmail.com wrote: All the data in my database seems to have magically vanished since last time I logged in. It's telling me there are un-applied migrations and none of my data elements are showing up on the data tab. Hopefully this is reversable. I make an export every so often, but I would hate to lose all the recent edits on poems. I haven't touched the database portion of the app for quite a while, so I don't think I did this. Please investigate: http://poetry.herokugarden.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 -~--~~~~--~~--~--~---
Re: Sql problem
Hi, I can't get past the password prompt. Could you describe what doesn't work means? a) data is not showing up? b) stack trace? c) other? quick solutions: a) If no data is showing up, you want to dump your database and upload the yml b) If the query is bad, then you may want to be aware that it is running postgreSQL. Please share a little more about the problem and we will do our best to assist you. --Keenan On Feb 2, 2009, at 3:23 AM, lonecat wrote: Hi, a page in my app doesn't work in heroku although it does work in my laptop. It seems to be (possibly) a database problem, but i'm not sure. I just wanted to know how can i get heroku's sqlite3's version and why doesn't it let me do heroku rake db:drop. If anyone is willing to help me, please look here: http://avanza-facturas.heroku.com/facturas/find try to type something in the searchbox or click Mostrar Todo. --~--~-~--~~~---~--~~ 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: Sql problem
Hello, Why don't you try: @facturas = Facturas.find(:all, :conditions = [ numeracion like ? or orden_servicio like ?,'%...@q}%','%...@q}%']) Using a ? in your sql statement should protect you from some sql injection attacks. Also, it seems it would be cross database compatible. I did not try this out, so let me know if it doesn't work for you. http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002213 (both the exists? example and the find example) Buenas Suerte, Keenan On Feb 2, 2009, at 11:18 PM, lonecat wrote: This is the search string i'm using now: @facturas = Factura.find_by_sql(SELECT * FROM facturas WHERE numeracion like '%...@q}%' OR orden_servicio like '%...@q}%'; ) Now, I've never actually worked with sql queries but that does the right job on my laptop. Is it wrong for postgresql? On Feb 2, 12:02 pm, lonecat jfgome...@gmail.com wrote: Thanks for your reply Keenan, I forgot to mention the password: username: avanza password: avanza. Doing heroku logs gives me this:http://pastie.org/377143 Good you mentioned that heroku uses postgreSQL. I'm using rail's default Sqlite3. Maybe it's a query problem then. How could I get a stack trace? I also tried creating a test application, different heroku name, same local app (which works here) but got the same results, so I'm thinking maybe it's definetly a query problem. How could I restart my app in Development mode so I can see some more info? On Feb 2, 8:31 am, Keenan Brock kee...@thebrocks.net wrote: Hi, I can't get past the password prompt. Could you describe what doesn't work means? a) data is not showing up? b) stack trace? c) other? quick solutions: a) If no data is showing up, you want to dump your database and upload the yml b) If the query is bad, then you may want to be aware that it is running postgreSQL. Please share a little more about the problem and we will do our best to assist you. --Keenan On Feb 2, 2009, at 3:23 AM, lonecat wrote: Hi, a page in my app doesn't work in heroku although it does work in my laptop. It seems to be (possibly) a database problem, but i'm not sure. I just wanted to know how can i get heroku's sqlite3's version and why doesn't it let me do heroku rake db:drop. If anyone is willing to help me, please look here: http://avanza-facturas.heroku.com/facturas/findtryto type something in the searchbox or click Mostrar Todo. --~--~-~--~~~---~--~~ 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: Bort and templates?
Hi Christian, You may want to try out suspenders (thoughtbot people) There is a little information out there specifically with heroku and suspenders I haven't round many of the sample app tutorials for them though - please share your experience/ tutorials you find --Keenan On Feb 16, 2009, at 3:40 PM, Christian Wattengård wrote: How about supporting Bort or other templates in the garden? You could get a choice when you init a new app. Clean or template... Would be nice for us n00bs. And, does anyone have a nice tut for getting started using the bort template? Or an intro tut that does not include blogs ;) -C- --~--~-~--~~~---~--~~ 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: quick question about heroku versus herokugarden
Hi Stephen, To turn off the banner: Create config/heroku.yml toolbar_public: false toolbar_collaborators: false I'm pretty sure you don't need to put a link to heroku. Rember it mentioned, but I put some not on the about page. (People tend to do that with non-free sites too for some reason) I think the reason you were auto moved is because the old heroku became herokugarden, and heroku is now their v2 product. I don't think it will auto move you to herokugarden. I don't know when it will cost money. --Keenan On Feb 21, 2009, at 9:15 PM, stephen murdoch wrote: Hi I had a few test apps running on heroku a while back and had forgotten about them until I got an email informing me that they had been moved to herokugarden - fine with me I don't mind Then today, I set up a new app on heroku (not herokugarden) and was wondering if this app will get moved by some daemon to herokugarden at any point It's not going to be a problem, I was just wondering Also, I notice that if you create a custom domain name for an app on Herokugarden, the page will have a pervasive heroku banner link at the bottom whilst custom domain names hosted on Heroku do not. Whilst I understand why you do that (you are giving free hosting and nothing's really free right?) what can we do in the event that it clashes with the site colour scheme? Lets say I had a bright pink background or flourescent green etc... As a suggestion I recommend the following: 1) allow users to alter the colours of the Heroku banner bar at the bottom of the page (perhaps have a set of banners from which they can choose, even allow people to develop their own within strict guidelines using some custom banner generator tool) - this solves the problem of my page background clashing with your banner 2) or, make a requirement that every page of every site must contain a visisble link to herokugarden along with some buttkissing statement about how much they love heroku, instead of having to have the banner. a bot or perhaps a rails test could verify that the visible link is displayed and could be set up to lock the site down if the user removed it just thinking so my questions are: 1) will my app on heroku be moved to herokugarden suddenly one day? 2) in the event that my app on heroku is not going to be moved to herokugarden, how long do I have before it ceases to be hosted for free? finally, I have a podcast that I want to host, I was thinking about using dreamhost as I've got other apps running there but now that I've spent the last 12 hours immersing myself in the ways heroku, dreamhost seems like a total PITA. the best solution is probably going to be the heroku commercial option you guys have planned, can you give me any info about what to expect for pricing? also do you have any idea what will happen in the event that my users should exceed my download limit? will I get fined or will my app just stop running until the next month? --~--~-~--~~~---~--~~ 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: Ajax error
Hi Few things The error is in your route. You have a resource slideshow, you need to tell them you have a non standard action Either uncomment the :controller/:action line or add a :collection = 'show_slide' to the resource :slideshow line. One thing to note Put the slideshow I'd into the session, not the slideshow object. Also, the whole session thing doesn't look right. No reason to be anti- ReSTful If the URL were to read: /slideshow/5/slide/1 (rwad: first picture of slideshow #5) Then the session would go away and the Javascript would only become margionally more complex That uses nested routes and no custom actions or anything. Anyone have a good link for an example of this or suggestion that I'm taking the rest thing too far? Best of luck. On cell phone so sorry I can't research this right now. --Keenan On Feb 22, 2009, at 4:32 PM, Mark northwest.patr...@gmail.com wrote: I am a RoR neophyte, and my first foray into Ajax has not gone well. I am working on an example out of the book Rails Up and Running, and while I have faithfully replicated the code, nothing seems to be working. Here are the code fragments: app/controllers/slideshows_controller.rb (partial) def show @slideshow = Slideshow.find(params[:id]) session[:slideshow] = @slideshow session[:slide_index] = 0 @slide = @slideshow.slides[0] end def show_slide @slideshow = session[:slideshow] session[:slide_index] += 1 @slide = @sildeshow.slides[session[:slide_index]] if @slide == nil session[:slide_index] = 0 @slide = @slideshow.slides[0] end render :partial = show_slide end app/views/slideshows/show.html.erb pi%=h @slideshow.name %/i/p % if @slide % div id=slides %= render :partial = show_slide % /div %= periodically_call_remote :update = slides, :url = { :action = :show_slide }, :frequency = 2.0 % % end % app/views/slideshows/_show_slide.html.erb %= image_tag photos/#...@slide.photo.filename} % p%= @slide.photo.filename %/p app/views/layouts/application.html.erb (partial) html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head meta http-equiv=content-type content=text/html;charset=UTF-8 / titlePhotos: %= controller.action_name %/title %= javascript_include_tag :defaults % %= stylesheet_link_tag 'application', 'photos' % %= stylesheet_link_tag 'slideshows' % /head Instead of a nice slideshow in Ajax, I get the following text with photo info: Basket basket.jpg and then this error: NoMethodError in SlideshowsController#show_slide You have a nil object when you didn't expect it! The error occurred while evaluating nil.slides Any help would be greatly appreciated. Mark --~--~-~--~~~---~--~~ 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: upload Rails app to Heroku / Herokugarden
Hi Egorbrandt 1 - Heroku is running a custom version of rails. If you change your config/environment.rb to say ruby version 2.1, then that should clear it up. The only way to change files on heroku is by git add ; git commit; git push 2 - not sure. Best of luck, Keenan On Feb 24, 2009, at 4:03 AM, egorbrandt wrote: hello group, I'm trying to upload my Rails app 1. to Heroku: the uploading was successful, however, the app failed to start. error: Missing the Rails 2.1.1 gem. Please `gem install - v=2.1.1 rails`, - I don't understand: I'm using Rails 2.1.1, config/environment works fine locally - I might've been doing something wrong, but then, how do I change remote files on Heroku? 2. to Herokugarden: after compressing the app into .rar archive when I try to upload this, there's an error page We're sorry... look in it shortly.' am I doing something wrong, or is it just me being impatient? I am new to (this way of) deploying, so could you help me out? I think the idea behind Heroku / Herokugarden is, what do you say, 'awesome'! thanks, egorbrandt --~--~-~--~~~---~--~~ 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: Strange AR error
Felix, So glad to be of help. Microsoft always seems to put square brackets around column and table names so you'd see select * from [application].[dbo].[table] in their database definition language extracts ('DDL') So it was worth a try. You have answered that single quotes work for you - so no need to try the square brackets. (It is a database thing not a ruby thing) Best of Luck --Keenan On Feb 24, 2009, at 3:57 PM, Felix Holmgren wrote: Hi Keenan, Also, the convention is to have underscores rather than camel case. This helped! Thank you very much. In the other class, where I let AR create the SELECT and used a the symbol representation of the field name (:firstPeer), AR apparently quoted the name correctly so that postgre understood it. Now I understand why AR always puts quotes around everything! So, in other words, this was not an AR error at all... :) Just goes to show that you should always rely on AR as much as possible. What happens if you use the ? Notation? :conditions=[firstPeer = ? or secondPeer = ?, @chatter.I'd,@chatter.id] Didn't try this, but it seems likely that that would have to be: :conditions=['firstPeer' = ? (with extra quotes around firstPeer; can Ruby/Rails handle such quotes-inside-quotes by the way; needs to be escaped?) Or use [[firstPeer] = ? or [secondPeer] = ?], ... What do these (inner) angular brackets do? Act as quotes? /F --~--~-~--~~~---~--~~ 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: New App on Heroku not working
Hello Renoke, It is ok/good to use sqlite locally, but on the server, Heroku will be running postgresql So any databases you check into git, and the config/database.yml file will be ignored --Keenan On Mar 4, 2009, at 1:27 PM, renoke wrote: Hi, I have a similar error running an rails app with sqlite3. I have the following error when I run heroku rake db:migrate /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ connection_adapters/abstract_adapter.rb:188:in `log': PGError: ERROR: relation categories does not exist (ActiveRecord::StatementInvalid) : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = 'categories'::regclass AND a.attnum 0 AND NOT a.attisdropped ORDER BY a.attnum from /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/ connection_adapters/postgresql_adapter.rb:490:in `query_without_graceful_reconnect' It seems that ActiveRecord is looking for postgresql driver. my app is luffadmin.heroku.com Thank you for your help, Renoke --~--~-~--~~~---~--~~ 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: password on keys?
I believe ssh/the OS is the one that asks for the private key password. Not Heroku ssh-agent helps you only enter your password once for the current terminal session --Keenan On Mar 6, 2009, at 5:05 PM, GreenAsJade martin.jg.greg...@gmail.com wrote: I have a password on my ssh key. Howcome heroku only intermittently asks for this? It does for a push, but not for many other things? --~--~-~--~~~---~--~~ 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: Post-compile hooks?
Rake task? Run it after updating your sass files? I know make and ant can do file mod date stuff so it would only be run if the file has been updated. Please share your solution. Or ask for help if you need more info. --Keenan On Mar 11, 2009, at 2:04 AM, Max nanode...@gmail.com wrote: I'd like something like this but for something slightly different -- I'd prefer to generate all my .css files (from Sass files) when my application is deployed (or compiled, in this case). Obviously, this isn't possible with the read-only file system, but if there was a hook to make changes to the file system before it was sealed up into a slug that would be excellent... On Mar 10, 7:49 pm, Harry Vangberg ha...@vangberg.name wrote: I really like the idea of 'compiling' before restarting the app after a git push. That has caught a couple of dumb mistakes on my part. But it would be nice to be able to set some kind of 'post-compile hook', which would have to run successfully before the app is restarted - that way I could have it run, say, `rake test' and have some kind of guarantee that the remote env is ok. Great service otherwise! --~--~-~--~~~---~--~~ 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: Subdomains
Hi melvin If you are using Heroku, the command line can help you Don't believe herokugarden has it. Which are you using? On Mar 20, 2009, at 7:55 PM, melvin ram mel...@volcanicmarketing.com wrote: Anyone know how to get subdomains to automatically work with a private heroku site? My site is www.brainbankhq.com. I want blah.brainbankhq.com to get recognized and work with my site. Any thoughts? --~--~-~--~~~---~--~~ 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: Problem moving from herokugarden - rake aborted! Don't know how to build task 'db:data:load'
The database load tasks are from a plugin. The location of the plugin should be in this group or the heroku website If you can't find give a shout and will try and track down. (iPhone and no copy/paste makes task difficult for me) On Mar 22, 2009, at 4:51 PM, Paul Leader paul.lea...@gmail.com wrote: I've followed the instructions for migrating my app from Herokugarden to heroku, but I'm having a problem with the final step. If I try to load my data from db/data.yml, I get: rake aborted! Don't know how to build task 'db:data:load' Any idea what's up with this? Obviously the rake targets are missing, but I can't work out where they should be. My app is graphomatic.heroku.com Paul --~--~-~--~~~---~--~~ 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: Graphviz and Dot
dot (and nice)is a command line app. Graphviz is the package/library name. It is in macports and basically all distributions. Most (all) ruby libraries are wrappers for the command line. The downside is it produces graphics. So it needs all the libraries to produce text in png, jpg, svg, pdf, bmp, ps, ... Think it requires X, truetype, and *lots* of others. May be possible to reduce the number of outputs by only supporting jpg, png, and svg. Do all browsers (iPhone, phones) support svg? Never really used it but looks cool. Seems to have the least number of dependencies. And with css would be easy to make output good looking. Windows outlook on coworkers computers don't do well with png so I used jpg for them. Thoughts about format support Tobes? What formats do you use? --Keenan On Apr 17, 2009, at 1:40 PM, Morten Bagai mor...@heroku.com wrote: Hi, Can you provide some links to the libraries you're seeking to use, and perhaps some info on binary dependencies? It's possible we can add support for these to our Dyno environment, but I'd have to know a bit more first. Thanks, Morten On Apr 17, 2009, at 10:10 AM, Tobes wrote: Hi folks I have a Sinatra application that uses Graphviz and Dot. I'm guessing that it won't be possible to host this on Heroku? If not, does anyone know of a good home where I could host it? I'd like something with the simlicity and scalability and general awesomeness that Heroku gives us. T --~--~-~--~~~---~--~~ 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: Graphviz and Dot
Tobes. I too would love to see graphviz on heroku. Basically it is a program that writes text and lines to a png. So it needs to have good text support. I think this is the part that has so many libraries. It also supports so many formats that it needs libraries for all of them. These are icing on the cake. Sure seems there are 2 parts to the library. 1. Determine what the thing looks like 2. create the graphics. Funny thing, most people want #1 The part that is such a bear is #2. (Wonder if you could extract #1 and just use imagemagic to do #2 or something) --K On Apr 17, 2009, at 3:05 PM, Tobes wrote: Keenan, thanks for the heads up. I also noticed that all Ruby libs I've found (Railroad, rDoc etc) delegate to the command line. B :( I'd live with JPG or PNG (Windows problem noted). SVG is desirable too as it's open to transformations, but not mandatory. SVG will be the way to go once the world puts IE6 and IE7 in the trashcan! Thanks again Tobes On Apr 17, 7:27 pm, Keenan Brock kee...@thebrocks.net wrote: dot (and nice)is a command line app. Graphviz is the package/library name. It is in macports and basically all distributions. Most (all) ruby libraries are wrappers for the command line. The downside is it produces graphics. So it needs all the libraries to produce text in png, jpg, svg, pdf, bmp, ps, ... Think it requires X, truetype, and *lots* of others. May be possible to reduce the number of outputs by only supporting jpg, png, and svg. Do all browsers (iPhone, phones) support svg? Never really used it but looks cool. Seems to have the least number of dependencies. And with css would be easy to make output good looking. Windows outlook on coworkers computers don't do well with png so I used jpg for them. Thoughts about format support Tobes? What formats do you use? --Keenan On Apr 17, 2009, at 1:40 PM, Morten Bagai mor...@heroku.com wrote: Hi, Can you provide some links to the libraries you're seeking to use, and perhaps some info on binary dependencies? It's possible we can add support for these to our Dyno environment, but I'd have to know a bit more first. Thanks, Morten On Apr 17, 2009, at 10:10 AM, Tobes wrote: Hi folks I have a Sinatra application that uses Graphviz and Dot. I'm guessing that it won't be possible to host this on Heroku? If not, does anyone know of a good home where I could host it? I'd like something with the simlicity and scalability and general awesomeness that Heroku gives us. T --~--~-~--~~~---~--~~ 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: Graphviz and Dot
Hi Tobin, Just a fellow heroku user like you. GraphViz does such great stuff. The layout is just great. Display is not as nice as something like OmniGraffle, but the layout is superior. (I think OmniGraffle hired the guy from ATT, and is doing great stuff merging the concepts between the two products. But it still has a little way to go. e.g.: it doesn't support different layouts for different subgraphs which is something that GraphViz does wonderfully) But I do wonder what it would be like to separate the layout from the generation. Of course if that layout would be best done in ruby. :) Looking at the dependencies, wonder if they use TCL to do that work. --Keenan On Apr 17, 2009, at 6:31 PM, Tobes wrote: Again, thanks for considering all this. Keenan, I'll keep searching, and if I can delegate #2 (create graphics) to something like imagemagic then that would be awesome. I actually started out playing with ImageMagick, knowing you guys supported it, but couldn't find a way of handling the layout (#1) neatly. Another scenario that I could run with would be: putting the Graphviz services on another cluster/machine, and then having a queue or bus to distribute that work out from Heroku. Cheers again folks, Tobin On Apr 17, 8:30 pm, Keenan Brock kee...@thebrocks.net wrote: Tobes. I too would love to see graphviz on heroku. Basically it is a program that writes text and lines to a png. So it needs to have good text support. I think this is the part that has so many libraries. It also supports so many formats that it needs libraries for all of them. These are icing on the cake. Sure seems there are 2 parts to the library. 1. Determine what the thing looks like 2. create the graphics. Funny thing, most people want #1 The part that is such a bear is #2. (Wonder if you could extract #1 and just use imagemagic to do #2 or something) --K On Apr 17, 2009, at 3:05 PM, Tobes wrote: Keenan, thanks for the heads up. I also noticed that all Ruby libs I've found (Railroad, rDoc etc) delegate to the command line. B :( I'd live with JPG or PNG (Windows problem noted). SVG is desirable too as it's open to transformations, but not mandatory. SVG will be the way to go once the world puts IE6 and IE7 in the trashcan! Thanks again Tobes On Apr 17, 7:27 pm, Keenan Brock kee...@thebrocks.net wrote: dot (and nice)is a command line app. Graphviz is the package/library name. It is in macports and basically all distributions. Most (all) ruby libraries are wrappers for the command line. The downside is it produces graphics. So it needs all the libraries to produce text in png, jpg, svg, pdf, bmp, ps, ... Think it requires X, truetype, and *lots* of others. May be possible to reduce the number of outputs by only supporting jpg, png, and svg. Do all browsers (iPhone, phones) support svg? Never really used it but looks cool. Seems to have the least number of dependencies. And with css would be easy to make output good looking. Windows outlook on coworkers computers don't do well with png so I used jpg for them. Thoughts about format support Tobes? What formats do you use? --Keenan On Apr 17, 2009, at 1:40 PM, Morten Bagai mor...@heroku.com wrote: Hi, Can you provide some links to the libraries you're seeking to use, and perhaps some info on binary dependencies? It's possible we can add support for these to our Dyno environment, but I'd have to know a bit more first. Thanks, Morten On Apr 17, 2009, at 10:10 AM, Tobes wrote: Hi folks I have a Sinatra application that uses Graphviz and Dot. I'm guessing that it won't be possible to host this on Heroku? If not, does anyone know of a good home where I could host it? I'd like something with the simlicity and scalability and general awesomeness that Heroku gives us. T --~--~-~--~~~---~--~~ 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: Graphviz and Dot
Good call Ryan, Never thought imagemagick. That probably includes most of the dependencies that GraphViz would need. Also pruning down the supported formats to those 3 would probably prune down the additional libraries needed much further. Also, thanks Tobes for asking the question. I had wondered a few times but never came out and asked. Even if this ends up with a no, it is better for us to ask than wonder. --K On Apr 17, 2009, at 7:17 PM, Ryan Tomayko wrote: On Fri, Apr 17, 2009 at 11:33 AM, Yuri Niyazov yuri.niya...@gmail.com wrote: Well, the whole thing already sounds like a no-go because heroku doesn't allow writing to the fs Yeah, but I believe you can pipe in and out of graphviz. That combined with the Varnish HTTP cache could make for a workable solution. We'll see what we can do here. Graphviz would be really cool. The X dependencies would probably be the biggest barrier, although I believe most are already installed in support of other graphics related packages. Thanks, Ryan On Apr 17, 2009 2:27 PM, Keenan Brock kee...@thebrocks.net wrote: dot (and nice)is a command line app. Graphviz is the package/library name. It is in macports and basically all distributions. Most (all) ruby libraries are wrappers for the command line. The downside is it produces graphics. So it needs all the libraries to produce text in png, jpg, svg, pdf, bmp, ps, ... Think it requires X, truetype, and *lots* of others. May be possible to reduce the number of outputs by only supporting jpg, png, and svg. Do all browsers (iPhone, phones) support svg? Never really used it but looks cool. Seems to have the least number of dependencies. And with css would be easy to make output good looking. Windows outlook on coworkers computers don't do well with png so I used jpg for them. Thoughts about format support Tobes? What formats do you use? --Keenan On Apr 17, 2009, at 1:40 PM, Morten Bagai mor...@heroku.com wrote: Hi, Can you provide ... --~--~-~--~~~---~--~~ 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: Good DNS hosting?
+1 Zoneedit. For 9+ yrs Recently I've consolidated to Godaddy. I registered there and wanted to consolidate. Sometimes I wish I had stayed there. On Apr 25, 2009, at 5:39 AM, GreenAsJade martin.jg.greg...@gmail.com wrote: sigh, that'd be zoneedit.com with two ees. On Apr 25, 3:42 pm, GreenAsJade martin.jg.greg...@gmail.com wrote: And if you want a second option, zonedit.com has done well for me for ages. Martin --~--~-~--~~~---~--~~ 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: Adva CMS
Hello try running rake adva:install (without the heroku) Then check in the files that it produces. Please share how that works out --Keenan On Jul 27, 2009, at 1:54 PM, saur...@safew wrote: Hi there, I am trying to install adva cms over Heroku. I am facing this problem, saur...@laptop:~/adva/adva$ heroku rake adva:install rake aborted! Read-only file system - /disk1/home/slugs/34680_13540ed_19fb/mnt/db/ migrate/app (See full trace by running task with --trace) (in /disk1/home/slugs/34680_13540ed_19fb/mnt) adva is based on Rails engines and all the migrations lie in the engines.is this a problem because of that ? --~--~-~--~~~---~--~~ 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: Adva CMS
Hello Saurabh I stand corrected. Looks like they create the files in db/migrations then delete them. I would hack the code to not delete the migrations from the db/ migration directory. Then check in the files created there. --Keenan On Jul 27, 2009, at 1:54 PM, saur...@safew wrote: Hi there, I am trying to install adva cms over Heroku. I am facing this problem, saur...@laptop:~/adva/adva$ heroku rake adva:install rake aborted! Read-only file system - /disk1/home/slugs/34680_13540ed_19fb/mnt/db/ migrate/app (See full trace by running task with --trace) (in /disk1/home/slugs/34680_13540ed_19fb/mnt) adva is based on Rails engines and all the migrations lie in the engines.is this a problem because of that ? --~--~-~--~~~---~--~~ 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: DNS Confusion
Nick, All looks great Putting the ns records on GoDaddy will work fine for your needs. Adding multiple sites is http://reflectivepixel.com/ is at herokugarden http://code.reflectivepixel.com is at tumblr http://photos.reflectivepixel.com is at smugmug mail, calendar, photos are at google Up until this week, I had an A record with * pointing to another server. All other domains went to a server with htaccess rewrite rules to redirect to the appropriate url (e.g.: www, ww, , rewrote to the root domain and photo went to photos) http://skitch.com/kbrock/b3euq/total-dns-control-panel The issue is the implications of the cname record. gemcutter.org. proxy.heroku.com CNAME You can read it as: find the content for gemcutter at proxy.heroku. But more accurately it is saying that gemcutter is basically the same as heroku.com If the two are the same, then does heroku.com or gemcutter.org host the DNS record? Some mail clients assume heroku (the master) will host the DNS record. Good news: proxy.heroku.com's mx records are the same as yours. so this shouldn't be a problem. Godaddy tries to protect you from yourself. This is a pain. On another route, if you tell dns CNAME www is provided by proxy.heroku.com, that is less of a statement. And --Keenan (others - please correct where I went wrong) On Jul 25, 2009, at 6:46 PM, Nick Quaranto wrote: Sorry if this was double posted, I didn't see it showing up on Google Groups. Hey folks, I'm really confused with trying to set up a custom domain for Heroku. I don't understand DNS too well, so any help would be appreciated. Currently here's the setup I have: I'm using GoDaddy and Slicehost, and I want to move hosting over to Heroku while still using Slicehost's DNS management. GoDaddy knows the nameservers are ns1, ns2, and ns3.slicehost.net. On slicehost's DNS management I have the following records: name | data | record type gemcutter.org. proxy.heroku.com CNAME gemcutter.org. ASPMX3.GOOGLEMAIL.COM. MX gemcutter.org. ASPMX4.GOOGLEMAIL.COM. MX gemcutter.org. ASPMX5.GOOGLEMAIL.COM. MX gemcutter.org. ASPMX.L.GOOGLE.COM. MX gemcutter.org. ASPMX2.GOOGLEMAIL.COM. MX gemcutter.org. ALT2.ASPMX.L.GOOGLE.COM. MX gemcutter.org. ALT1.ASPMX.L.GOOGLE.COM. MX gemcutter.org. ns3.slicehost.net. NS gemcutter.org. ns2.slicehost.net. NS gemcutter.org. ns1.slicehost.net. NS Do I even need the NS records anymore? Should GoDaddy be told that my nameservers are still on slicehost? They can forward domains as well, but Im not sure if that's the same. Also, I'd like to have google apps for this domain as well. Is the CNAME for heroku set up correctly? Any sort of transition information would be appreciated, I'm sure that I'm not the only person that's been really confused with trying to move hosting over. Thanks! -Nick --~--~-~--~~~---~--~~ 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: Staging Environments
Hello Neil, Just keep in mind that Heroku defaults to using the master branch. I think you can override this during the heroku command see: http://jqr.github.com/2009/04/25/deploying-multiple-environments-on-heroku.html Let us know how it works out for you. --Keenan On Jul 30, 2009, at 5:15 AM, Neil wrote: Has anyone played with staging environments (in addition to a production environment) on Heroku. Essentially, what I'm looking to achieve is the ability to test deploy my code to Heroku, before trying it against the production version, essentially to just run a final check that things won't explode before trying it against production. It is just a case of adding an additional remote into my git config? --~--~-~--~~~---~--~~ 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: herokugarden is down again
I used this as an opportunity to finally move my app to Heroku Took 5 minutes On Aug 7, 2009, at 7:48 AM, nacho na...@yestoall.com wrote: my application in herokugarden doesn't work -- // nacho --~--~-~--~~~---~--~~ 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: Passing environment variables to rake
Thank you so much for your reply Adam. As expected, heroku is working beyond my expectations. Using environment variables in rake tasks is a great way of avoiding interactive rake prompts. --Keenan On Aug 7, 2009, at 3:12 PM, Adam Wiggins wrote: On Thu, Aug 6, 2009 at 11:09 AM, Keenankee...@thebrocks.net wrote: I'm trying to write a rake task that requires additional data command: rake USER=user1 lovdbyless:admin rake file: namespace :lovdbyless do task :admin = :environment do login=ENV['ADMIN'] You need to use ENV['USER'], or else pass ADMIN= on the command line: heroku rake ADMIN=user1 lovdbyless:admin Adam --~--~-~--~~~---~--~~ 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: Workflow for compressing JavaScript and CSS using YUI Compressor prior to deployment
Hi Grant, I was about to write a follow up on that one - I'm pretty sure they do not have Java installed. I was quick to jump the gun and show how to generate content and serve it up. After I looked at the project I realized the java predicament. http://compressorrater.thruhere.net/ points to a couple. Looks like jsmin has been ported to ruby - so that would work. disclaimer: I have only heard the name and have not used. but for the static libraries, it does seem that serving up a minified version (or the minified version hosted on google) may be a great route. --Keenan On Aug 13, 2009, at 11:36 PM, Grant Heaslip wrote: Thanks Keenan. Does Heroku have Java installed on their servers (YUI Compressor runs on Java)? If not, any suggestions on other compressors to look into? On Thu, Aug 13, 2009 at 10:29 PM, Keenan Brock kee...@thebrocks.net wrote: I was able to put some files into tmp/generated and ln -s from public to the tmp directory. I did git check in the link Generate to tmp generated You could link individual files or have a whole directory like scripts/generated link to tmp/generated --K On Aug 13, 2009, at 2:32 AM, Grant Heaslip m...@grantheaslip.com wrote: I previously used a great Rails plugin called yui_compressor_fu (http://github.com/maxim/yui_compressor_fu/ ) to combine and compress my JavaScript and CSS the first time it was loaded in production, but since Heroku doesn't allow access to the filesystem, I need to figure out a new solution. The main problem is that I'd prefer to not be checking the compressed JavaScript into my git repository, but since I'm deploying from git I'm not sure there's any way around it. Does anyone have any clever solutions for this? Thanks, Grant --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Resetting the database
Hi All, How do I wipe out a database and start from scratch on heroku? Locally I run: rake db:migrate:reset (essentially db:drop db:create db:migrate) Unfortunately, rake db:migrate VERSION=0 doesn't quite do what I want a) Is there a better command? -or- b) Is it possible for someone at Heroku to implement a db:drop that clears the database? Thanks for any insight, Keenan --~--~-~--~~~---~--~~ 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: Resetting the database
$ heroku rake db:reset already exists rake aborted! no such file to load -- /home/slugs/43604_014bb44_7d48/mnt/tmp/schema.rb (See full trace by running task with --trace) (in /disk1/home/slugs/43604_014bb44_7d48/mnt) Couldn't drop : #ActiveRecord::StatementInvalid: PGError: ERROR: must be owner of database : DROP DATABASE IF EXISTS Instead I wrote: namespace :db do desc 'drops all tables and resets migrations to nothing' task :reset = :environment do ActiveRecord::Base.connection.tables.each {|t| ActiveRecord::Base.connection.drop_table(t) unless t=='schema_migrations' } if ActiveRecord::Base.connection.respond_to? :truncate ActiveRecord::Base.connection.truncate('schema_migrations') else ActiveRecord::Base.connection.delete('delete from schema_migrations') end end desc 'recreate the database and populate it' task :reload = %w(db:reset db:migrate) # annotate_models desc 'annotates the models and dumps the schema' task :doc = %w(db:migrate annotate_models db:schema:dump) end On Aug 27, 2009, at 12:44 PM, Ryan Tomayko wrote: On Thu, Aug 27, 2009 at 7:54 AM, Keenan Brockkee...@thebrocks.net wrote: Hi All, How do I wipe out a database and start from scratch on heroku? Locally I run: rake db:migrate:reset (essentially db:drop db:create db:migrate) Unfortunately, rake db:migrate VERSION=0 doesn't quite do what I want a) Is there a better command? -or- b) Is it possible for someone at Heroku to implement a db:drop that clears the database? Thanks for any insight, Keenan Running heroku db:reset will reset the app's database to a blank slate. You'll need to run migrations or use heroku db:push to reinitialize afterward. Thanks, Ryan --~--~-~--~~~---~--~~ 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: Put an application into maintenance state
Hi GaJ I just tested and it looks like it works the way you and I want. (it is additive so you can just specify the one variable) Not sure when they fixed it, but sure enough - we're all set on this one. --Keenan On Sep 3, 2009, at 11:26 PM, GreenAsJade wrote: It's a nice idea. One small fly in the ointment is that you can't individually set heroku configuraiton variables (unless this is fixed now?) Certainly last time I tried it, I found that any env var not set explicitly on the same config:add statement was removed. IE config:add is not additive. This means that to implement the suggestion above, you would have to ensure that each time you turn on and off MAINTAIN you will have to be setting all the other vars as well. A royal PITA. GaJ On Sep 4, 3:59 am, Keenan Brock kee...@thebrocks.net wrote: Hi Thomas, For passenger, there is a way to say if a file is present, then display a maintenance page. (using mod rewrite) This got me thinking. Heroku has environmental variables. So why not use an environmental variable to trigger a maintenance page? Maybe you can add a maintenance page to your site. e.g.: setup the blocker: config/routes.rb: (below Routes.draw but above the other entries) if ENV['MAINTAIN']=='true' map.maintain '*path', :controller = 'application', :action = 'show500' end -or- application_controller.rb if ENV['MAINTAIN']=='true' before_filter :show500 end and setup the renderer: app/controllers/application_controller.rb def show500 render :file = 'shared/maintain', :status = 500 false end To turn it on: heroku config:add MAINTAIN true The site will say we'll be back soon rake db:migrate other stuff heroku config:remove MAINTAIN Hope this meets your needs. I'll throw together a plugin when I get the chance. But long weekend suggests I'll have other things on my plate. --Keenan On Sep 1, 2009, at 2:25 PM, geolev wrote: I think this would be great. Does anyone know how to do this? On Aug 28, 2:52 am, Thomas Balthazar gro...@suitmymind.com wrote: Hello, I'd like to know what would be the best way to put an application into maintenance state. I want to deploy a major update (code + db structure + data migration) on a Production app, and I'd like to be sure that users don't use the app while I'm deploying and testing. As far as I know, as soon as I run 'git push heroku', the app is deployed and the users are able to access it. The problem is that I haven't run 'heroku rake db:migrate' yet, so the app that is online right now doesn't work. Also, once I've run 'heroku rake db:migrate', I'd like to be able to test the app to be really sure everything is ok. But the users are already using the app and if I made a mistake and I want to rollback, I can't, since users are already using the new DB structure. I know I have to test the app so it doesn't happen, I also have a Staging app to test everything, but, you know, sometimes things still go wrong. So, what would be the best approach to achieve an application 'maintenance' state? Thanks for your suggestions. Best, Thomas. --~--~-~--~~~---~--~~ 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: Protecting your production environment
Hi All, 1. Adam had posted the heroku command on git before ( http://github.com/adamwiggins/heroku-client ) Maybe someone there can repost it? 2. I have created rake commands for most of what I do locally e.g. rake reload runs: rake db:reset ; rake db:migrate load:data I run heroku comands via rake e.g.: rake h:reload runs: heroku db:reset ; heroku rake db:migrate ; rake h:load:data FILE=samples/people if you went that route it would be quite easy to aggregate commands to simplify your workload. And it would give you a spot in the rake file to prompt --Keenan On Sep 15, 2009, at 4:45 AM, Neil wrote: At the very least I would expect some sort of This is a live environment - are you really, really sure you want to do this? on the app changing actions. (db:push, db:reset etc, similar to destroy) N On Sep 11, 3:14 pm, Carl Anderson nexus...@gmail.com wrote: That was something I was wondering as well. I've literally had nightmares about doing just that (am I alone?) Carl On Fri, Sep 11, 2009 at 4:03 AM, Neil neil.middle...@gmail.com wrote: I'm not sure if someone has already covered this, but although there are loads of really handy features in the Heroku gem, some of the functions that you can acheive are potentially very damaging to a production environment and also very easy to do. For instance, from what I've seen there is nothing to stop me from doing a db:push to my live application - there's no sort of question of confirmation etc. Is this something that's planned or is it something I've just not seen? --~--~-~--~~~---~--~~ 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: Protecting your production environment
Oops Scratch previous point #1 Hmm. That is odd - I searched for heroku on github and this didn't come up... --Keenan On Sep 15, 2009, at 5:09 AM, Sarah Allen wrote: Yeah, I actually totally munged the live DB right after we went live (luckily before we told anyone about the site and we had all the data backed up). I agree that some kind of are-you-sure would be the right answer. Kind of like 'rm -i' but on by default -- there could be a -f option to suppress the warning. The gem is open source... I don't know offhand how to add an interactive prompt to a rake task, but I suppose it could be added here: http://github.com/heroku/heroku/blob/master/Rakefile I'm clearly not getting enough sleep this week, so for now I try to be quite cautious when I type heroku in particular directories, but eventually I won't be able to live with that :) On Sep 15, 2009, at 1:45 AM, Neil wrote: At the very least I would expect some sort of This is a live environment - are you really, really sure you want to do this? on the app changing actions. (db:push, db:reset etc, similar to destroy) N On Sep 11, 3:14 pm, Carl Anderson nexus...@gmail.com wrote: That was something I was wondering as well. I've literally had nightmares about doing just that (am I alone?) Carl On Fri, Sep 11, 2009 at 4:03 AM, Neil neil.middle...@gmail.com wrote: I'm not sure if someone has already covered this, but although there are loads of really handy features in the Heroku gem, some of the functions that you can acheive are potentially very damaging to a production environment and also very easy to do. For instance, from what I've seen there is nothing to stop me from doing a db:push to my live application - there's no sort of question of confirmation etc. Is this something that's planned or is it something I've just not seen? http://www.ultrasaurus.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 -~--~~~~--~~--~--~---
Re: Put an application into maintenance state
Thomas, Sorry it took so long. Have been using this for a little while now but took a while to tear it out. Very interested in feedback. 1) put http:://github.com/kbrock/iorn_gate into plugins directory 2) add near the TOP of environment.rb MAINTENANCE =(ENV['MAINTENANCE']=='true') 3) add to my application_controller: if MAINTENANCE acts_as_gated :template = 'shared/gate_closed', :gate_name = 'testing123 end 4) create 'maintenance' page to app/views/shared/gate_closed.html.erb heroku keys:add MAINTENANCE true git push heroku heroku rake db:migrate heroku open do url: /testing123/open ... test... heroku keys:remove MAINTENANCE --Keenan On Sep 10, 2009, at 6:45 AM, Thomas Balthazar wrote: Hi Keenan, Thanks for the suggestion! Thomas. On Thu, Sep 3, 2009 at 8:59 PM, Keenan Brock kee...@thebrocks.net wrote: Hi Thomas, For passenger, there is a way to say if a file is present, then display a maintenance page. (using mod rewrite) This got me thinking. Heroku has environmental variables. So why not use an environmental variable to trigger a maintenance page? Maybe you can add a maintenance page to your site. e.g.: setup the blocker: config/routes.rb: (below Routes.draw but above the other entries) if ENV['MAINTAIN']=='true' map.maintain '*path', :controller = 'application', :action = 'show500' end -or- application_controller.rb if ENV['MAINTAIN']=='true' before_filter :show500 end and setup the renderer: app/controllers/application_controller.rb def show500 render :file = 'shared/maintain', :status = 500 false end To turn it on: heroku config:add MAINTAIN true The site will say we'll be back soon rake db:migrate other stuff heroku config:remove MAINTAIN Hope this meets your needs. I'll throw together a plugin when I get the chance. But long weekend suggests I'll have other things on my plate. --Keenan On Sep 1, 2009, at 2:25 PM, geolev wrote: I think this would be great. Does anyone know how to do this? On Aug 28, 2:52 am, Thomas Balthazar gro...@suitmymind.com wrote: Hello, I'd like to know what would be the best way to put an application into maintenance state. I want to deploy a major update (code + db structure + data migration) on a Production app, and I'd like to be sure that users don't use the app while I'm deploying and testing. As far as I know, as soon as I run 'git push heroku', the app is deployed and the users are able to access it. The problem is that I haven't run 'heroku rake db:migrate' yet, so the app that is online right now doesn't work. Also, once I've run 'heroku rake db:migrate', I'd like to be able to test the app to be really sure everything is ok. But the users are already using the app and if I made a mistake and I want to rollback, I can't, since users are already using the new DB structure. I know I have to test the app so it doesn't happen, I also have a Staging app to test everything, but, you know, sometimes things still go wrong. So, what would be the best approach to achieve an application 'maintenance' state? Thanks for your suggestions. Best, Thomas. --~--~-~--~~~---~--~~ 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: Git
(on phone and winging this. Ping if it isnt working) If you are in the rails directory type: git remote -v That will say where you are hooked up Hopefully you will see an origin or heroku If so, try again If not: Find out your git url: heroku list heroku info --app app name Find the git: url git remote add heroku git url Hope that fixes it Also, ensure you have your ssh key setup --Keenan On Sep 21, 2009, at 11:21 AM, Thomas Sullivan sulliva...@gmail.com wrote: Try searching google for heroku on a proxy. I'm on the phone now otherwise I'd link it. On Sep 9, 2009, at 9:32 AM, Nemrah harmenh...@gmail.com wrote: Hi i installed ruby m rubygems , git and the heroku gem. I was following all the steps described in the docs sections of Heroku when i walked into this error : fatal: 'heroku' does not appear to be a git repository fatal: The remote end hung up unexpectedly , i got it after typing the git push heroku master command. Whats i going wrong and what can i do to fix this ? Thanks , Nemrah --~--~-~--~~~---~--~~ 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: Installing Radiant extension
Hi Thomas, for testing, sometimes I: chmod -R 555 rails_app chmod 755 rails_app/tmp and I run from there That usually allows me to recreate the problem locally and I go from there. Keep the questions coming, --K On Sep 25, 2009, at 6:02 AM, Thomas Balthazar wrote: Hello John, Thanks a lot for your answer. That's exactly what I did, but the extension isn't activated on Heroku... :-/ Any idea? Best, Thomas. On Sep 25, 5:24 am, john johnm...@gmail.com wrote: the update command for most extensions modifies the file system (adds files to public/javascripts and/or public/stylesheets) so i think you're hitting the read-only filesystem restriction. if it's working locally you can commit all of the changes the extension made and then run: git push heroku master heroku db:push which will copy all the new files (the ones from the update command) and copy up your database (from the migrate command). On Sep 23, 3:52 pm, Thomas Balthazar gro...@suitmymind.com wrote: Hello, I've successfully installed Radiant 0.8.1 on Heroku. Now, I'm trying to install an extension (http://github.com/tricycle/ radiant-page-preview-extension) but I cannot manage to do it. It works perfectly locally, just by running 'rake radiant:extensions:page_preview:update', but when I try to run this command on Heroku 'heroku rake radiant:extensions:page_preview:update' I get the following error : -- rake aborted! Don't know how to build task 'radiant:extensions:page_preview:update' -- I've double-checked, and the 'page_preview' is present in my vendor/ extensions folder. Any idea? Thanks, Thomas. --~--~-~--~~~---~--~~ 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: installing gems from gemcutter not as it should be
Just a thought. Are the requests to gemcutter using HTTP? Is the system using ETags / If-Mod-since? Seems there could be a way to use a forward proxy to gemcutter. It would help out: 1) less bandwidth for both gemcutter and heroku 2) faster image build times on heroku 3) less load on the gemcutter servers 4) maybe less load on the heroku servers since Another option would be to have a local repository of gems. I remember doing this with rpms/gentoo ports. It was a bit of a pain but as the number of machines increased, it really sped things up. (Especially when installing the software) --Keenan On Nov 2, 2009, at 11:51 AM, Neil Middleton wrote: I had this same problem last week - in the end, and on about the tenth push it finally managed to make it through which was a real pita. Something needs to be there to ensure deployments aren't killedwhatever that might be. /Neil On 2 Nov 2009, at 16:46, markdevilliers wrote: It did work for me a couple of hours later. It had also failed several times before I posted. I think the issue is consistency - random gems (not always redcloth) were failing to install with the error message - http:// gemcutter.org/ does not appear to be a repository - which in the example above doesn't make sense as it was a repository moments before. I'll probably accept that maybe gemcutter is a bit overloaded a certain times and timing out delivering the initial 302 but maybe on the heroku side there needs to be a try a few times on push as failing at random stages is a bit annoying. Anyway I've just pushed again and all is good again, Thanks for looking into it for me - Mark --~--~-~--~~~---~--~~ 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: db:push unable to find taps
HEy Chris, For a while I noticed that taps created invalid urls that contain a password. I think the url encoding would screwup with the : (between username/password) or something like that. I used to manually create the url and all would work. It has been a while since I've been on that project, so sorry I'm a bit vague. --Keenan On Dec 2, 2009, at 5:14 PM, Chris Baglieri wrote: One step closer. I was able to find a lingering heroku gem library (1.2.1) lying around. I removed it from my system and I am not getting another error saying invalid database URL. At least it appears to be working now. I should be good to go from here. If I do run into any other issues, I'll cover it elsewhere. Thanks for the help. David, you rock, as I believe you were also the one who stepped up on the IRC channel. Cheers! On Dec 2, 5:03 pm, Chris Baglieri chris.bagli...@gmail.com wrote: $ ruby -v ruby 1.8.6 (2009-03-31 patchlevel 368) [i686-darwin10.0.0] Getting somewhere now. David, I made the change you suggested and there was nothing different in terms of what was displayed. I then commented out the error message outright and it still was shown when I issued the command, I uninstalled and readded the heroku gem but maybe it is lingering elsewhere on my machine. Let me see if I can find it. On Dec 2, 4:57 pm, David Dollar da...@heroku.com wrote: Try changing that rescue LoadError to rescue LoadError = ex puts ex.inspect to get a better idea of what is failing to load. - David On Wed, Dec 2, 2009 at 4:55 PM, Chris Baglieri chris.bagli...@gmail.comwrote: Installed the latest heroku gem and still no luck. Any thoughts would be appreciated. foo$ heroku version heroku-gem/1.4 foo$ taps version 0.2.22 foo$ heroku db:push Install the Taps gem to use db commands. On most systems this will be: sudo gem install taps This is where the error appears to be thrown (/opt/local/lib/ruby/gems/ 1.8/gems/heroku-1.4/lib/heroku/commands/db.rb for me): def initialize(*args) super(*args) gem 'taps', '= 0.2.8', ' 0.3.0' require 'taps/client_session' rescue LoadError error Install the Taps gem to use db commands. On most systems this will be:\nsudo gem install taps end On Dec 2, 1:47 pm, Morten Bagai mor...@heroku.com wrote: Actually, the current gem version is 1.4. It's on gemcutter. M On Dec 2, 2009, at 10:39 AM, Chris Baglieri chris.bagli...@gmail.com wrote: I'm trying to push a database and 'heroku db:push' is alerting me that I do not have the taps gem installed. The step before issuing the heroku command, I installed taps (0.2.22) and confirmed it was there. I'm attempting to do this from OSX. Someone in the IRC channel suggested I confirm all of taps dependencies where installed and it appears they are. I also updated my heroku gem (which coincidentally was a version behind) hoping that would make a difference. Looking at db.rb, the problem is happening on initialize. I am running everything out of my /opt/local/bin... directory for whatever that's worth. From my command line I can issue taps commands. Could it be that the heroku gem is unable to find my taps gem? My path is below along with some other helpful bits: foo$ echo $PATH /opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/opt/ local/lib/postgresql84/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ bin:/usr/X11/bin foo$ gem -v 1.3.5 foo$ taps version 0.2.22 foo$ heroku version heroku-gem/1.3 foo$ which taps /opt/local/bin/taps foo$ which heroku /opt/local/bin/heroku -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@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 her...@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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this
Re: How can I disable models and/or tweak config.load_paths?
Why not try app/models_legacy/ That is not included by default in rails. so you could get a difference. Best of luck, Keenan On Dec 3, 2009, at 11:26 AM, Patrick Crowley wrote: My app won't launch because it has some Legacy models that rely on a :legacy database adapter. I have no intention to use these models in production -- they're only used to migrate legacy content. So my plan is to just run my legacy migration rake task in development, migrate all legacy data, and then push the data to my Heroku app. Sure, the easy fix would be to just ditch the models entirely, but realistically I'll need to migrate legacy data repeatedly until the app is completed and launched publicly. So how can I tell Heroku to ignore these models? I've tried this: config.load_paths += %W( #{RAILS_ROOT}/app/models/legacy ) unless RAILS_ENV == 'production' But Heroku seems to ignore it. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Nesta
Hi, As an alternative, you may want to keep the hit directory around git co -b production #create a Heroku branch git remote add heroku git:// ... Heroku ... You will need to setup the default destination for this branch (I defer to what ever suggestions the git command provides) Make sure you checking your Heroku specific changes under the production branch, not master. This way you can pull/push changes for the community to enjoy. When I was working with lovdbyless, I wish I had branched earlier. It is a little tricky merging in the code changes to master that are appropriate for the rest of the nests community, but it will be a good lesson in selective merging. (I'd give advice but I failed the lesson and ended up just keeping 2 different directories around) Best of luck. Keenan On Dec 26, 2009, at 7:13 PM, jd j...@vauguet.fr wrote: Hi. Just a quick note for those using or willing to use Nesta on Heroku: you must disable the caching system, so you may replace set :cache_enabled, Nesta::Configuration.cache in app.rb by: configure :production do # this will be runned at heroku's dyno startup # let's disable Nesta's caching system so Heroku's happy set :cache_enabled, false end I'd recommend the following process to set up a Nesta instance on Heroku: 1. git clone nesta from github 1.bis cd inside 2. remove the .git directory and .git_ignore 3. create a fresh git repos: git init, git add ., git commit -am fresh start 4. create your new project on Heroku: heroku create your_project 4.bis update config/config.yml and do not forget to set cache to false in the production section 5. push from your machine to Heroku: git push heroku master 6. Start managing your content in Nesta, then git commit -am … and git push heroku master when you're ready, and so on. NB: Nesta is a simple CMS engine built on top on Sinatra (http:// effectif.com/nesta). Kind of a _why feeling to it, doesn't get in your way. And with Mustache, publishing's a cinch! -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: flush memcached?
Hi, You can try ActionController::Base.cache_store.clear That is assuming that you have assigned your memcache to the cache_store. --Keenan On Jan 23, 2010, at 5:08 PM, walker wrote: Is there a way to flush the memcached cache for your app? I have some bad page data (my own fault, was playing around with some stuff) and would like to just clear everything out. Thanks! -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: dns wtf for .it domain
Hello Shane, it takes a little time for these things to propagate across the internet. Sometimes up to 3 days. And to make it worse, your computer, your router, and possibly your hosting provider all cache the records. So it is tricky to know once you got it right. I tried the url and got the parked domain too. I tried to query your dns server directly, and am probably doing it wrong, but got back the old ip address: 119.252.176.38 % host razzledazzle.it ns1.instradns.com I'm guessing I have some user error, and may be running the wrong command. But do check if you need to click 'confirm' or 'save' in the dashboard. Best of luck, Keenan On Feb 9, 2010, at 12:03 AM, Shane Becker wrote: the heroku app (behind a password) http://razzledazzleit.heroku.com the desired domain http://razzledazzle.it the dns setup with the registrar (whose dashboard sucks a lot) http://skitch.com/veganstraightedge/nwmhn/european-domain-names-europe-registry host name | ip address razzledazzle.it 75.101.163.44 razzledazzle.it75.101.145.87 razzledazzle.it174.129.212.2 i'm still getting the parked domain page from them. any ideas? thanks shane still vegan. still straightedge. shane becker +1 801 898-9481 blog: http://iamshane.com shirts: http://theresistancearmy.com -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: A key is required to write a cookie containing the session data.
Hey Chaz, for rails apps, config/initializers/session_store.rb usually has a secret key ActionController::Base.session = { :key = '_charles_session', :secret = 'XX' } you can get a good session key by running: rake secret Create the file and see how it goes. --Keenan On Feb 9, 2010, at 12:23 AM, Charles M Magid wrote: Thank you very much in advance for any and all help on this. Symptom: The app http://hope-for-the-future.heroku.com/ returns 'App failed to start' on load. See Pastie: http://pastie.org/815793 for trace github: http://github.com/trevorturk/static See deployment to heroku 2/3 of the way down the page Error message: cookie_store.rb:163:in `ensure_session_key': A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key = _myapp_session, :secret = some secret phrase } in config/ environment.rb (ArgumentError) Briefly: I am using 'static' CMS by trevorturk / static on github and using the heroku deployment instructions. The app works locally so I hoped it would just deploy, even though there were directions on deploying to heroku I didn't groke, ie: ... mate config/config.yml # configure the production environment rake s3:create rake heroku:config ... heroku rake db:schema:load ... Above may be a red herring. Seems like the following lines need to be changed, but to what and where is the doc on this? environment.rb has the following lines: config.action_controller.session = { :key = CONFIG['session_key'], :secret = CONFIG['session_secret'] } Is this a red herring? Thank you in advance again, your most appreciative booster. Charles Magid -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Taps Server Error: year too big to marshal when doing a db:pull
Hello Paul, It looks like you have a record with a year too big for sqlite. I have run into this in non rails situations importing year '9' to MSSql - it was a bug in my code that did not add 2000 Looks like you only have 2 tables to choose from (users, payments, credits and streams were successful). From heroku console query for all records bigger than this year. That may shed some light Record.scoped(:conditions = date_field '#{DateTime.now + 10.years}') #single then double # May want to try less then 100 years before now too Winging that, but hope it helps --Keenan On Feb 15, 2010, at 8:11 PM, Paul Leader wrote: I've been trying to pull a copy of my database for local debugging, but every time I try I get the following error: Auto-detected local database: sqlite://db/development.sqlite3 Receiving schema Receiving data 6 tables, 4,665 records users: 100% |==| Time: 00:00:01 payments: 100% |==| Time: 00:00:00 credits: 100% |==| Time: 00:00:00 streams: 100% |==| Time: 00:00:00 !!! Caught Server Exception== | ETA: 00:00:00 [warning] The response contained in an RestClient::Exception is now a RestClient::Response instead of a Net::HTTPResponse, please update your code Taps Server Error: year too big to marshal Has anyone seen this sort of thing before, and have you any idea what I can do to fix it? Also, I've updated all my gems to the latest versions, but I still get that warning, which suggests that Taps/Heroku client need updating. Paul -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Suggestion: Make db:push a little safer
I have something like the following defined desc 'prompt are you sure' task :are_you_sure do unless ENV['FORCE'] == 'true' puts puts THIS WILL BLOW AWAY THE DATABASE puts hit enter to continue (control c to abort) puts STDIN.read(1) end end task :refresh = %w(are_you_sure db:pull db:convert db:test:prepare) rake db:refresh prompts rake db:refresh FORCE=true does not Or if you wanted to require FORCE=true, you can do the following: desc 'require force param' task :require_force do raise This modifies production. To run, please specify FORCE=true unless ENV['FORCE'] == 'true' end --K On Mar 25, 2010, at 11:12 AM, Mike Doel wrote: On Mar 25, 2010, at 10:55 AM, Sean Schofield wrote: I'm loving the heroku db:pull stuff but its a bit dangerous if you accidentally run db:push on a production system. Would it be possible to have db:push warn you that the remote database is not empty? Maybe something like the following: WARNING: Remote database is not empty. Are you sure you want to replace its contents with the contents of your local database? If so please use heroku db:push with the --force option. We tend to use rake tasks for pushing/pulling instead of using the heroku gem directly. Something like: namespace :db do task :refresh = ['db:pull','db:convert','db:test:prepare'] task :pull = [:drop, :create] do system 'heroku db:pull' end # Include in here any rake tasks needed to seed or modify data for # current iteration task :convert = ['db:migrate'] end That's for pulling instead of pushing (now that we're live, we never push - only migrate/convert). Once you get in the habit of doing 'rake db:refresh' instead of 'heroku db:pull', it becomes natural. You could build a rake task that wraps db:push and warns you before doing its thing. Mike -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Using Time.now in AR#find :conditions - not working correctly?
I really like the way this was written up in DelayJob / job.rb def self.db_time_now if Time.zone Time.zone.now elsif ActiveRecord::Base.default_timezone == :utc Time.now.utc else Time.now end end FWIW/ --Keenan On Apr 20, 2010, at 2:01 PM, Matthew A. Brown wrote: The usual approach with ActiveRecord is to treat datetime columns as time-zone-less -- in other words, regardless of whether postgres has an internal idea of time zone, you interpret the values of those columns in whatever time zone makes sense. To make that less of a pain, many applications set ActiveRecord to persist all timestamps as UTC -- this is just a configuration setting you can put into your environment.rb: ActiveRecord::Base.default_timezone = :utc Then, whenever you're doing time-based queries, you need to remember to cast the time in question to UTC. One could make the argument that ActiveRecord should do this for you, or that it shouldn't, but either way it doesn't, so it's just something you have to remember to do in your code. Naturally, operations that assume that your idea of a time zone and the database's are the same -- such as performing a query with NOW() -- are going to cause you problems; but since you're probably building all your queries in Ruby anyway, it's easy enough to avoid those situations. Mat On Tue, Apr 20, 2010 at 13:39, Matthew Moore m3mo...@gmail.com wrote: I have a model that I'm trying to do a find along with conditions that rely on Time.now. When I run 2 simple queries, one with created_at = Time.now, and one without, I expect to find the exact same record (because no new posts have been created in between these calls). But I get different results -- Here's my output: Time.now = Tue Apr 20 10:38:01 -0700 2010 Time.now.utc # For verification purposes = Tue Apr 20 17:38:05 UTC 2010 Post.find(:first, :conditions = ['created_at = ?', Time.now], :order = 'created_at DESC') = #Post id: 7835, created_at: 2010-04-20 05:46:03, updated_at: 2010-04-20 05:46:03 Post.find(:first, :order = 'created_at DESC') = #Post id: 7866, created_at: 2010-04-20 17:17:26, updated_at: 2010-04-20 17:17:26 Is this because the Timezone of the server is set wrong? Something funky with Postgres? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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 her...@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: Time zone issue, Rails 3 - Time.zone = set, but heroku still using local server time
Hi Daryl, I'm still living in 2.3 land, but one thing I often see is using Time.now vs Time.zone.now Also, in test_helper (not sure the rails 3.0 equivalent), I needed to set a default Time.zone - otherwise the Time.zone is nil, so Time.zone.now throws exceptions --Keenan On May 3, 2010, at 1:30 AM, Daryl wrote: Hey there herokuistas, So, I'm using Rails 3.0.0.beta3 and am trying to get the default time in my app to be London while the servers, as you know, are on Pacific time (I'm in Aus myself). I've set the application_controller.rb to have a before filter which sets the timezone and then sets that to London (I still want AR to write to the DB in UTC, so have not touched the environment/ application.rb). === before_filter :set_timezone def set_timezone Time.zone = 'London' end === Checking heroku console `date` *still* shows the machines on Pacific time, as does a check of the code when I got there (it should show Monday but instead stuck on Sunday at the mo). Can anyone tell me what I need to do to get the code to see this as London time ? Also, I've asked the fine folks at heroku to reset the daily cron to go off at 1.15am London time and just wondering if changing this setting to London time will then affect that daily cron job kicking off. Any help appreciated! A bit stumped here. Thanks ! Daryl. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: sharing app on multiple machines
On my iPhone, Sorry if this was already addressed. Github is free for public archives. Which works for many. As you mentioned, They also have a paid option if you want private repos and other options. If you google: github Heroku workflow, there are a number of examples of how to use git and multiple repos. (regardless of whether you choose github or any other provider) When I started, I had multiple computers using Heroku as my git remote server. It worked much the same way that svn works. The disadvantage being that every time I checked in code, it would deploy. So I was forced to only check in working code. Later, I started storing my code on github or company hosted git repo. Only pushing to Heroku to deploy. Sticking to one remote git repo (on heroku) may meet your needs. The neat thing about git is if you pick another hosting provider, you won't loose anything since all history is local. Pushing to a new provider will include all history (unlike svn). Best of luck, Keenan On May 11, 2010, at 3:07 PM, dan mr.dan.ma...@gmail.com wrote: i was originally going to use github when someone suggested gitosis, since its free it felt a little funny having to pay for something that im really only using for me, not a team or anything the benefit is that id be more proficient at git (if thats considered a marketable skill then it may be worth it) but im not sure how to setup my project to support both heroku git and my own personal git -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Deploying with Bundler from private repos on GitHub
Hi Fredrik, I think you can checking in the gem archive directory with the .gem archives. so in theory, you can check in all the files you need. Not sure the religious implications of that though. Whether is is a good idea or bad. It sounded like it bought you some speed boosts too. --Keenan On May 12, 2010, at 5:49 PM, Pedro Belo wrote: Not at this moment, unfortunately. But there is probably one or another way around this issue, we'll keep you guys updated. On Tue, May 11, 2010 at 1:33 AM, fbjork fredrik.bj...@gmail.com wrote: Hi all, Is it possible to deploy to heroku using bundler if i'm using the :git directive for gems that are in a private repo on GitHub? Regards, Fredrik -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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 her...@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: development works fine but production on heroku complain about caling count on []
Adam, When we run centos, it only has ruby 1.8.5. And [].count is not defined. But unsure why heroku would fail on this - thought they were running 1.8.7 (or newer depending upon your stack) Maybe monkey patching is your friend? --Keenan On May 10, 2010, at 10:37 PM, adam wrote: My heroku app is tripping over code at the point where i try to do a count on an empty array. But in development on my local machine with the very same database and code (taps db:pull) it doesnt trip up. can anyone tell me why this is? im using ruby 1.8.7 and rails 2.3.2 below is the offending line which produces the error NoMethodError (undefined method `count' for []:Array): @recently_checked_sentences_count = @user.checked_sentences_since_last_login.count with method below def checked_sentences_since_last_login() self.sentences.checked.find(:all, :conditions = [checked_at ?, last_login_at]) end which uses named_scope named_scope :checked, lambda{|limit| { :limit = limit, :order = checked_at DESC, :conditions = checked_at IS NOT NULL } } -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Do you pay for multiple apps, or only multiple dynos per app?
Hello Brian, You want to have one code base that is hooked up to 2 heroku apps. (staging, production) Each of the heroku apps gives you 1 dyno for free. I like the article at: http://jqr.github.com/2009/04/25/deploying-multiple-environments-on-heroku.html (see also: http://stackoverflow.com/questions/1279787/staging-instance-on-heroku ) There were a number of examples out there, but I'm having trouble tracking it down. The take away is that your local repo is connecting to a number of remotes: 1 of which is staging, 1 is production, and optionally, another could be github, or any other remote repo. --Keenan On May 17, 2010, at 2:44 PM, Brian wrote: I currently have one app running with one dyno in production env. I'd like to create a staging one too, but am not sure if I can do that, with one dyno and its still free, or if I'll now have to pay for a 2nd dyno. thanks, Brian -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: hosting app on root domain?
John, Yea, strike the MX record comment. Heroku used to be CName based, which proved tricky for MX records on a root level domain. They have since given us ip addresses, so we can do A records, so it is no longer an issue. Thanks again awesome Heroku crew for fixing this so we can do all sorts of wonderful stuff with your domain. --Keenan On May 19, 2010, at 7:56 PM, Jonathan Dance wrote: You can add MX records to the Zerigo DNS or, of course, your own DNS host. I don't believe these disturb the Heroku-Zerigo integration if you're using that. I usually recommend people use Google Apps ( www.google.com/a/ ) for their domains - its free and usually meets people's needs. --wuputah On Wed, May 19, 2010 at 5:02 PM, Keenan Brock kee...@thebrocks.net wrote: John, Also don't forget. Hosting the root is easy Hosting the email portion (aka MX record) has proven a little more tricky. I have not used Zerigo DNS. I'm moving from godaddy to namecheap this month hoping that will resolve the issues. --Keenan On May 19, 2010, at 4:16 PM, Oren Teich wrote: Hi John, http://docs.heroku.com/custom-domains#dns-setup We have 3 IP addresses you setup your A records to point at for root DNS. Oren On Wed, May 19, 2010 at 5:00 AM, johnb john.bey...@gmail.com wrote: Has anyone found a nice way to host an app on a root domain being as you can't create an empty cname record? For example I want to run on myapp.com and not www.myapp.com - I can setup redirects from myapp.com to www.myapp.com in my domain control panel but I can't figure out a way to run my app on myapp.com thanks, john. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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 her...@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 her...@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 her...@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: MySQL -- Postgres LIKE find error
Edoardo, 1. you may do well to store the id as a string you can index that, and many databases will use an index with a like clause (given the % is on the right hand of the string) only way I know how to create this is using: def after_create if id_string.blank? id_string=id.to_s save end end 2. it may be too late in the game, but there is this concept of internal and external ids the internal id is the integer you use in your join tables. the external id is the string/number you use to refer to this record to other people. the external id is the one in the url, and possibly the only one the customer knows. example: first initial, last 4 letters of their name and a sequence ( ezari005 ) the url would use that for /people/ezari005 Or you could use the user chosen id for the url. twitter does this. if you make the field fixed length and non-nullable, you could get some optimization for the indexing. (that is assuming a system generated index) Accessing the record may be 1 extra lookup or may not. def to_param is your friend, but there is also a great plugin out there they mentioned on rails envy a while back (called the ruby show now) If you already have the ids released into the wild, may be no turning back. Best of luck, --Keenan On May 25, 2010, at 3:09 AM, edoardoz wrote: Thank for your answer. The business case is to search documents by incomplete (user submitted) id. Due this case is managed out-of-the box by mysql, and we have many cases like this, it's possible to enable implicit casting even in heroku's postgres? Regards. On May 24, 11:42 pm, Jonathan Dance j...@norbauer.com wrote: In Postgres, you can only do string searches on string columns. Your options are thusly: 1. Stop doing this. Do you really want to be searching an integer like a string? 2. Convert ID to a string column. You shouldn't do this either, unless id was just an example. 3. Tell Postgres to cast it to a string before running the LIKE clause. This should work in MySQL as well - MySQL was doing it implicitly, but you must do it explicitly in Postgres: :conditions = CAST(id AS char) LIKE '80%' You shouldn't do this either, as it's a slow operation, although Postgres (but not MySQL) does allow indexing on derived columns. Note that I've set the character limit to 8 on the string cast here to limit the size of the index: CREATE INDEX id_string_idx ON documents ((CAST(id AS char(8; --wuputah On Mon, May 24, 2010 at 1:42 PM, edoardoz edoardo.z...@gmail.com wrote: Something that work perfectly in my app with MySQL: Document.find(:all,:conditions = [id LIKE ?,80%]) isn't working with PostgreSQL 8.3 in Heroku: ActiveRecord::StatementInvalid: PGError: ERROR: operator does not exist: integer ~~ unknown LINE 1: SELECT * FROM documents WHERE (id LIKE E'D%') ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. : SELECT * FROM documents WHERE (id LIKE E'D%') Something happened to type casting: what to do? Regards. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@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 her...@googlegroups.com. To unsubscribe from this group, send email to 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 her...@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 her...@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: Rails 2.3.6
Two things you may want to keep in mind: People mentioned rails 2.3.4 - 2.3.5 breaking a number of tests. I think Rails 2.3.7 is just around the corner. --Keenan On May 25, 2010, at 12:26 PM, Matthew A. Brown wrote: Hmm, interesting. I still haven't been able to get Heroku to install rails 2.3.6 from the manifest after multiple attempts. Anyone else? I would assume Rails 2.3.6 should be hitting the installed-gems pretty soon? On Mon, May 24, 2010 at 23:40, Steve Wilhelm st...@studio831.com wrote: I was receiving the following error from Authlogic 2.1.4 with Rails 2.3.5. .../.gems/gems/authlogic-2.1.4/lib/authlogic/session/callbacks.rb: 69:in `included': undefined method `singleton_class' for Authlogic::Session::Base:Class (NoMethodError) Author suggests upgrading to Rails 2.3.6, so I added rails --version 2.3.6 to the top of my .gems file. It took a little while, but heroku eventually loaded the rails gems and it solved the Authlogic problem. - Steve W. On May 23, 9:21 pm, Matthew A. Brown mat.a.br...@gmail.com wrote: For what it's worth, I added all of the individual components to the .gems manifest above the call to Rails itself -- all the components installed fine, but it still timed out trying to install the metapackage. Weird. On Sun, May 23, 2010 at 19:12, Matthew A. Brown mat.a.br...@gmail.com wrote: Hi all, Ran into a problem with gem dependency resolution that I wasn't able to easily solve without just updating everything to the latest, including Rails to 2.3.6. However this doesn't appear to be installed by default on alpine and when I put it into my .gems manifest, it seems to just sit forever when trying to install it. Anyone else had any luck with 2.3.6 on alpine? Thanks, Mat -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to 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 her...@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 her...@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 her...@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: is it possible to allow users to use CNAME or A to point custom domains at my heroku app?
Hi, 1 IP address per website is too expensive. So lots of domains are hosted off the same IP address. HTTP/1.1 (what we've used since ~1998) passes in a Host: parameter. The webserver uses the Host parameter to map the request to the appropriate application. We tell the webserver how to map the Host to the application. --Keenan On Jun 1, 2010, at 10:48 AM, Kyle Bragger wrote: So I just tested this out and unfortunately Chap's suggestion seems to be the only way; any other domain CNAME'ed to another domain pointing to Heroku passes though as expected, and fails, as Heroku looks for an app with *that* custom domain. Alas. On Jun 1, 8:21 am, Kyle Bragger kyle.brag...@gmail.com wrote: So you think I have to always add custom domains to the heroku account itself? That seems a bit convoluted (albeit very clever), and I wonder if there are hard limits on how many custom domain names you can have. Would you need to CNAME foobar.com *and*www.foobar.comto proxy.heroku.com then? On Jun 1, 8:11 am, Chap chapambr...@gmail.com wrote: Here's how I've done it. Add the custom domain to the heroku app (for now I'm just doing it by hand, but you could probably include the heroku gem and do it during the account creation) and then point the www cname of the custom domain to a subdomain of your app (foobar.example.com). Basically how Shopify does it:http://wiki.shopify.com/DNS On May 31, 11:23 pm, Kyle Bragger kyle.brag...@gmail.com wrote: If I've got a Heroku app at example.com, and have turned on wildcard subdomains (foo.example.com, etc.), is it currently possible to support the following scenario: - I have a profile at kyle.example.com - I register foobar.com - I turn on use custom domains in the app and set my custom domain to foobar.com How would I configure DNS for this scenario? I've got A records for example.com to point to Heroku's servers, andwww.example.comCNAME'ed to proxy.heroku.com, but where would I point foobar.com? -Kyle -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Spree 0.10.2 can't start on Heroku
Hi, I'm not a spree person, but I have ported frameworks to heroku. (e.g.: loved by less) not sure if this was already answered Why not copy the default theme to the target spot on your own? Seems the startup code would not copy if it it already existed. And if it did copy it, just add the File.exist code and submit a patch. see who calls spree-0.10.2/lib/plugins/extension_patches/lib/asset_copy.rb and see if you can get around it --Keenan On Jun 2, 2010, at 10:03 AM, Olivier R wrote: Heroku apps don't have write privileges which causes this exception on startup. Is there a way to go around this? Check this out: http://paddock.heroku.com /home/slugs/196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/lib/spree/ file_utilz.rb:61:in `mirror_files': Could not copy /home/slugs/ 196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/vendor/extensions/ theme_default/public/images/wrapper-back-2.png to /disk1/home/slugs/ 196124_7d3212a_92f9/mnt/public/images/wrapper-back-2.png: (RuntimeError) Read-only file system - /disk1/home/slugs/196124_7d3212a_92f9/mnt/ public/images/wrapper-back-2.png Best regards, Olivier -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: EXIF support on Heroku?
Kinda a hack but If you look at mysql, they compile native c code. I played with this in http://github.com/kbrock/tclink Not sure what the dependencies are, but wonder if the code is tight enough to embed it in a gem. --K On Jun 8, 2010, at 10:37 AM, Richard Conroy wrote: On Tue, Jun 8, 2010 at 3:15 PM, Patrick Crowley patr...@mokolabs.com wrote: Has anyone been able to extract EXIF information from photo uploads on Heroku? Most EXIF parsing gems are wrappers for libraries that aren't available on the Heroku stack. (And we can't install these libraries manually as you'd normally do on a VPS.) You can install non-standard gems on heroku. You need to look into updating your .gems file manifest. It can be a bit tricky if your gem has dependencies that are not part of the heroku stack. It will compile native gems for you (within reason - no Win32 gems for instance) and generally works pretty well. It can make your app size very big though, and can make deploy times very lengthy. -- http://richardconroy.blogspot.com -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Newrelic Bronze and Heroku
Many hosting providers have figured out it is cheaper for them to run efficient websites than inefficient ones. Engine yard gives away rpm as well. Or at least they did. I'm pretty sure bronze is 100% free --Keenan On Jun 11, 2010, at 3:52 PM, Amiruddin Nagri amir.na...@gmail.com wrote: Heroku is offering Newrelic bronze integration for free, whereas the Newrelic site have a subscription fee for bronze version. How is this possible ? Is there a hidden cost that I am missing out ? Will I be charged under any circumstances either from Heroku or Newrelic for using this free bronze integration. Regards, Amiruddin Nagri, Bangalore, 560008, KA India Y! IM : amir_na...@yahoo.com GTalk : amir.na...@gmail.com -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Preserve cache
S3? On Jun 12, 2010, at 2:41 PM, Alan B listst...@gmail.com wrote: Hi all, I have an app that generates a lot of PDF files that never need to change. I was going to generate them once and then cache them using Varnish and a long expires header. However, I see from the heroku docs that the cache is purged whenever I deploy. Is there any way to prevent this from happening? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Project.where(:status = true)
Hey, I was on a project that was supporting mysql (local build machine), sqlite3 (developer's box), and posgres (heroku) the boolean instances were very tricky across these. Date logic is also a pain ( e.g. time = NOW() ) I ended up implementing a hack on top of active_record connection, that worked, but I wasn't too happy. If someone has a better solution - please share. --Keenan http://gist.github.com/440903 On Jun 16, 2010, at 10:22 AM, Steve Smith wrote: Looks like Arel might not be escaping the true correctly which is strange. How about p = Project.where([status = ?, true]) Does that do the same thing? Steve On 16 Jun 2010, at 14:46, webdevotion wrote: Hey We have a problem with our Projects controller. Where we want to select all the projects with status set to true we use: p = Project.where(:status = true) It works locally, but it doesn't work on the Heroku instance. Does work, but not agnostic p = Project.where(:status = '1') What's the best practice to solve this ( little ) problem? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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 her...@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: Failing Routes
disclaimer: I have not installed rails 3 yet. My reaction is they are looking for controller Admin::HomeController in file app/controllers/admin/home_controller --K On Jun 21, 2010, at 11:03 AM, Neil wrote: I have an app that has the following in the routes file: namespace admin do # ADMINISTRATIVE ROUTES ONLY root :to = 'home#index' resources :comments do member do get :approve get :reject end end resources :users do member do get :block get :unblock end end end When browing to /admin locally, I am greeted by the appropriate page. On the same URL on the heroku version I get a 404. The route shows correctly in 'heroku rake routes' Logs are showing: ActionController::RoutingError (wrong constant name Admin/ homeController): /disk1/home/slugs/196384_c95a9e3_4463/mnt/.bundle/gems/gems/ activesupport-3.0.0.beta4/lib/active_support/inflector/methods.rb: 103:in `const_defined?' Any ideas? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Programmatically Spinning Workers Up and Down
Pedro, This is great! One concept I got from a 2007 IT Conversation podcast interviewing GigaVox and SmugMug: You are optimizing cost vs responsiveness. Reducing the granularity of startup and shutting down of instances saves quite a deal of money. Don MacAskill spoke more about this and SkyNet: http://don.blogs.smugmug.com/2008/12/09/on-why-auto-scaling-in-the-cloud-rocks/ http://don.blogs.smugmug.com/2008/06/03/skynet-lives-aka-ec2-smugmug/ I don't have anything more recent. Please share if anyone does. --Keenan On Jun 23, 2010, at 12:56 AM, Pedro Belo wrote: Hi Chris, There is. I made a little proof using DJ that might give you some insight. The code is on this branch: http://github.com/pedro/delayed_job/commits/autoscaling And instructions/notes are on the comments here: http://github.com/pedro/delayed_job/commit/09d7657e1fc7d25072e6c5e73ede20d6e1185eac#commitcomment-58225 On Fri, Jun 18, 2010 at 2:33 AM, Chris Kalaboukis thinkfut...@gmail.com wrote: Hi guys: I saw an old thread on this but there seemed to be no answer. Is there a way within my app to shut down and restart all the workers programmatically? I have a twitter harvesting app which requires it and I need to do it manually. Is there a doc somewhere which describes how to do it? Thanks...chris -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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 her...@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: how to setup mime-type in my rails app
Hey Eki, hostname = the name of your app filename = the name of the jar file telnet hostname 80 HEAD filename HTTP/1.1 Host: hostname (2 returns) What does it say is the Content-Type? There is probably an easier way to just use firefox ... --Keenan On Jun 23, 2010, at 6:53 AM, Eki wrote: Hi there , Is there anyway to setup mime-type of jar file , I need my mobile app to download some jar file in public folder , I adding some code for mime_type.rb file something like this : Mime::Type.register text/vnd.sun.j2me.app-descriptor, :jad Mime::Type.register application/java-archive, :jar but still not working . whenever I read the jad file it read it as text instead of downloading it . Any help will be highly appreciated . Cheers -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: how to setup mime-type in my rails app
Hello Eki, Sorry - should have seen this before. The mime type that you are setting is for your rails app. The jad/jar files are being served from the http server. So you need to configure the http server for the mime type. I don't know how to modify the http server mime-types - couldn't find it at http://docs.heroku.com/ The options that you are more in control: 1) serve up the file from s3 2) serve up the file via Rack/Metal/Rails set the cache to use varnish set the mime-type http://docs.heroku.com/http-caching Serving the file from apache (the public directory) would be the preferred route, but if you are up against a deadline, maybe the 2 options above may help Good luck, Keenan On Jun 24, 2010, at 4:44 AM, Eki wrote: Hey Keenan , I would like to thank you for your swift response and your welling to help , anyways I can't use the FF since I'm using this for mobile application u know , and anyways its not working even for FF . I did what you told me , check out the outputs below telnet http://falling-autumn-84.heroku.com 80 Trying 75.101.163.44... Connected to heroku.com. Escape character is '^]'. HEAD RamadanApp_100.jad HTTP/1.1 Host http://falling-autumn-84.heroku.com HTTP/1.1 400 Bad Request Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Connection: Keep-Alive Content-Length: 691 I'm not sure if I did that right way , anyways check it out yourself , try to install the following jar file http://falling-autumn-84.heroku.com/RamadanApp_100.jad and check out the result . Thanks in advance Eki On Jun 24, 4:46 am, Keenan Brock kee...@thebrocks.net wrote: Hey Eki, hostname = the name of your app filename = the name of the jar file telnet hostname 80 HEAD filename HTTP/1.1 Host: hostname (2 returns) What does it say is the Content-Type? There is probably an easier way to just use firefox ... --Keenan On Jun 23, 2010, at 6:53 AM, Eki wrote: Hi there , Is there anyway to setup mime-type of jar file , I need my mobile app to download some jar file in public folder , I adding some code for mime_type.rb file something like this : Mime::Type.register text/vnd.sun.j2me.app-descriptor, :jad Mime::Type.register application/java-archive, :jar but still not working . whenever I read the jad file it read it as text instead of downloading it . Any help will be highly appreciated . Cheers -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to 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 her...@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 her...@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: Ruby 1.9.2
Hi, I remember hearing: We will add support for 1.9.2 when the community releases the official release. But it looks like it will be out soon. http://twitter.com/heroku/status/21517412884 http://blog.heroku.com/archives/2010/6/15/rails_3_beta_4_on_heroku/ --Keenan On Aug 27, 2010, at 10:19 AM, morgoth wrote: ping -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: free vs. paid heroku app performance
Hello Deepak, A single / free dyno spins down when it is not in use. Much like passenger / mod_rails on your local box. It cost ram/cpu/money to run a dyno on an ec2 instance. If you are not using it (and you are not paying for it), then there is no reason why Heroku should dish out the money to pay for something you are not using. If you want to pay for it by getting another dyno, then I guess you can be the judge on whether to have the app running or not. It seems curious to me that people want Heroku to pay for their staging environment to be up all the time. For me, staging is a pre-release testing environment. Guess others have a different view. Keenan On Aug 29, 2010, at 6:48 AM, deepak wrote: what is the reasoning behind this. Did you test this or is it given in the docs? Deepak On Aug 26, 11:32 pm, Eric Anderson e...@pixelwareinc.com wrote: On 08/26/2010 11:30 AM, marcel wrote: .. OTOH if you pay for at least 2 dynos then they NEVER spin down meaning your app is always nice and responsive even if nobody has it it for a while. . Eric -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Automatic tagging of your 'real' git repo after push
Hi Jeff, Jeweler has a rake task to send tags to github. You may want to take a peek in there to get the code you need. Setting up a deploy:prod rake task or something could tag, push to github, and push to heroku. - Or what ever your process may be. If you can't find what you need, send a ping across and I'll help where I can. --Keenan On Sep 8, 2010, at 9:13 AM, JDeville wrote: I'd like to have every push to prod be automatically tagged in some way. (My repo is on github) I know with the http hooks I should be able to write something that will do this, but I thought I'd see if it'd already been done. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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: Git, SVN and Heroku
Hi 1. Use git as your client (with git-svn). Then just update (from svn) and push to heroku. It works great. If you have trouble, ping me. I haven't done this recently, but can try and dig up some stuff if you need. Issues you may see: deleting directories (e.g. vendor/gems/* )in git doesn't always translate to svn. So sometimes you get a fail there. Otherwise it works without a hitch. 2. Use svn and git use svn like you always do setup git as a duplicate version control system in the same directory. When you want to push, just check the files into git (git commit -a) and push to heroku. I know someone who did this and said it worked for him. Good Luck, --Keenan On Sep 9, 2010, at 12:16 AM, Swards wrote: I work on a team that uses SVN for source control (a separate discussion is in the works to get them moved over to git), and we would like to check out of svn and push to Heroku. I can't figure out how to do this very easily. Is there a way to turn an existing directory (checked out by svn) that has not yet been initialized in git, initialize it, and allow that to be pushed to Heroku, essentially overwriting the existing code on Heroku? I'm trying to allow multiple team members to checkin to svn and push to Heroku via Git. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: wonderful platform for app staging...
Hi Roy, Have you checked out http://docs.heroku.com/ ? --Keenan On Sep 20, 2010, at 8:32 PM, Roy Wang dinoro...@gmail.com wrote: Yes, GitHub+Heroku is fantastic. If only Heroku had better documentation... Is there a wiki for Heroku? Roy On Tue, Sep 21, 2010 at 8:07 AM, Dennis dennismaj...@gmail.com wrote: I believe Rails 3 works with Ruby 1.8.7: http://edgeguides.rubyonrails.org/getting_started.html I think it is only a couple of p releases of 1.8.7 that cause problems (see above link) ... later versions of 1.8.7 are available - for windows at least and I think archived versions of 1.8.7 would be available for other OS's On Sep 19, 1:26 pm, kadoudal kadou...@gmail.com wrote: I subscribed recently to Heroku and found how easy it is (together with GitHub) to deploy apps and test them 'live' HOWEVER all new Rails applications are to be designed with the pair Rails3-Ruby1.9.2 as they have been released unfortunately Heroku does support Rails3 only with Ruby 1.8.7 at the present time... and I have to go back to my old staging deployment environment... I hope they will support 1.9.2 asap , any idea of when this could happen ?? matter of weeks.. months.. quarters.. hungry now ... -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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 her...@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: Caching of /public files
I agree with Steve, 1) Static assets served from public are cached for 12 hours. ( http://docs.heroku.com/http-caching under Static Assets) 2) Setting up your own Rack::Static has a bug in it that is not setting the cache headers, and it is not possible to override. I thought the Heroku team was either fixing it or had fixed it recently. --Keenan On Sep 22, 2010, at 7:09 AM, Steve Smith wrote: Does Heroku not apply these headers for you? Looking at my site I see Cache-Control:public, max-age=43200 added to any images served from public? I was surprised to learn that ActionDispatch::Static/Rails doesn't cache the static files in production but I guess it does make sense. You could always add a caching middleware if you really need to? You can also pass Cache-Control headers into Rack::Static too but I'm not sure how you would tell Rails to do that? Steve On 22 Sep 2010, at 11:39, Alex wrote: Sorry, I should have specified, the files stored in /public on rails for instance. These aren't managed by a controller (so no headers that way) and I was wondering if heroku had a default approach to them. It occurs to me that this may be entirely a Rack issue, though hopefully somebody here can point me in the right direction. On Sep 22, 4:01 am, Jeff Deville jeffdevi...@gmail.com wrote: This what you're looking for?http://docs.heroku.com/http-caching On Tue, Sep 21, 2010 at 10:36 PM, Alex a...@heaton.me wrote: I'm wondering about the options for caching of public files, I would image they are cached by default? How do you set caching headers on them for instance? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@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 her...@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 her...@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 her...@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: Caching of /public files
I could have sworn it was 24. But the documentation said 12... http://docs.heroku.com/http-caching What is the best channel to request an update to the docs? --Keenan On Sep 22, 2010, at 3:08 PM, Oren Teich o...@heroku.com wrote: Heroku by default caches all static assets in /public for 24 hours. Oren On Wed, Sep 22, 2010 at 3:39 AM, Alex a...@heaton.me wrote: Sorry, I should have specified, the files stored in /public on rails for instance. These aren't managed by a controller (so no headers that way) and I was wondering if heroku had a default approach to them. It occurs to me that this may be entirely a Rack issue, though hopefully somebody here can point me in the right direction. On Sep 22, 4:01 am, Jeff Deville jeffdevi...@gmail.com wrote: This what you're looking for?http://docs.heroku.com/http-caching On Tue, Sep 21, 2010 at 10:36 PM, Alex a...@heaton.me wrote: I'm wondering about the options for caching of public files, I would image they are cached by default? How do you set caching headers on them for instance? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@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 her...@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 her...@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 her...@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: inconsistent Memcache reads
Hi Brandon, Once, I had changed my memcache client library and it started raising exceptions. Turns out the previous library just returned a nil, while this one raised an exception. So I hacked the library to return nil on failures rather than throw exceptions. (The previous library just returned a nil not failing) This seems like the answer for me. Maybe alter the gem and add the option to throw an exception instead of returning a nil. But it is curious that it would fail so many times. --Keenan On Oct 5, 2010, at 9:25 AM, Brandon Casci wrote: It took a few days for the ticket to get answered, but yesterday did get confirmation from Heroku that this was a problem, with Amazon EC2 causing the pain. See this: http://getsatisfaction.com/heroku/topics/sporadic_errors_with_memcache_addon I have the same symptoms they mention, though for my app it's not sporadic, it's a state. The only way I can seem to shake it is by opening the rails console and doing Rails.cache.clear, and things go back to normal until problem kicks back up again. I'd rate this problem a 9.5 out of 10 for my app. What makes things particularly difficult for me is input comes in from outside sources and sits in memcache. In this case, what a radio station is currently playing, and it should stay there until the next time until new data comes in via the API. I suppose it's fair to say that data should be placed in the DB, which is fine. I can do that, and then do a Rails.cache.fetch from there. Any miss would mean another AR query instead of a nil. That's still a problem though, because a lot of supplementary data gets queried with the song title, artwork, photos, products and more. So all those cache misses will have a recognizable negative impact. On Tue, Oct 5, 2010 at 9:13 AM, John Norman j...@7fff.com wrote: Brandon: Regretably, I'm cheating and am using the Dalli gem without the guidance of Heroku. :-( I couldn't get memcached-northscale to compile on my Mac. Whatever. In any case: Rails.cache.write foo, bar = true Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar Rails.cache.read foo = bar On Mon, Oct 4, 2010 at 3:53 PM, Brandon Casci bran...@loudcaster.com wrote: Yep :) On Mon, Oct 4, 2010 at 4:48 PM, Teng Siong Ong siong1...@gmail.com wrote: are you sure that you are using the supported memcache gem? http://docs.heroku.com/memcache On Mon, Oct 4, 2010 at 3:43 PM, Brandon Casci bran...@loudcaster.com wrote: It's crazy making. Rails.cache.read mykey = nil Rails.cache.read mykey = nil Rails.cache.read mykey = nil Rails.cache.read mykey = 1 Rails.cache.read mykey = nil Rails.cache.read mykey = nil Rails.cache.read mykey = 1 Rails.cache.read mykey = nil Rails.cache.read mykey = nil On Sat, Oct 2, 2010 at 7:58 PM, Brandon Casci bran...@loudcaster.com wrote: Hello I'm new to Heroku, so I'm not sure if this is a problem, or normal behavior. I'm seeing a inconsistent memcache reads. Reading a key will sometimes alternate between nil and the value placed in memcache. Other times the value just seems to vanish, though that could be a sign that memcache is full, though I can't find a way to tell if it's full. What do es everyone think might be happening? -- = Brandon Casci Loudcaster http://loudcaster.com = -- = Brandon Casci Loudcaster http://loudcaster.com = -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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. -- = Brandon Casci Loudcaster http://loudcaster.com = -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more
Re: two heroku apps talking to same db
Hello Joel, I believe the party line is to use web services. It provides a much better extraction layer. But can be a little tricky. Thought there was an example out there with CAS and single signon Can't find it. Does anyone on the list remembers the link to the single signon example? --Keenan On Oct 4, 2010, at 11:16 PM, Joel VanderWerf wrote: Is it possible for two apps on heroku to access the same database? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: two heroku apps talking to same db
That is great, If you blog about your experience, could you send the link to the list? --Keenan On Oct 5, 2010, at 2:44 PM, Joel VanderWerf wrote: On 10/05/2010 11:42 AM, Keenan Brock wrote: Hello Joel, I believe the party line is to use web services. It provides a much better extraction layer. But can be a little tricky. Thought there was an example out there with CAS and single signon Can't find it. Does anyone on the list remembers the link to the single signon example? Actually, the answer from heroku support is yes: Question: If I develop two heroku apps, can they access a single database? The reason I ask is that we have a rails app and a sinatra app, and they need to share a postgres database. Would rather not do that by http! Answer from heroku support: Yes, if you need to, you can. Every Heroku app gets a database provisioned by default, but it's possible for one app to use another app's database simply by copying the DATABASE_URL config var from one app to another. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Compiled Slug size not changing after removing large gems from Gemfile
Hi Stephen, If you checked in a gem into git Then you deleted the gem from git. Git still has the gem. It is not showing up for today, but git log will show when you added it and removed it. Guess I do not know if you are checking in your bundle dir and gems into git. 1. So are you saying your repo is 17mb, or your slug is 17mb? I'd imagine that the slug would be smaller on your change to the Gemfile. But you stating that your slug is big suggests that maybe the .git directory is included in the slug? The slug size does affect the speed in which a dyno is started / compiles / restarts. But I agree with Chris, I can't imagine it would slow it down too much. --Keenan On Oct 12, 2010, at 12:48 AM, Chris Hanks wrote: Yeah, this has happened to me before, too. I'm pretty sure the problem is on Heroku's end. I don't worry that much about it, though, since the max slug size is 100 MB. On Oct 11, 8:57 pm, stephen murdoch stephenjamesmurd...@gmail.com wrote: I have encountered a few strange problems with Heroku this evening. My repo size somehow managed to bloat to 17mb so I removed some gems from my Gemfile (ran bundle install, git add Gemfile.lock etc etc) and found that my repo was still 17mb. I removed all my gems (apart from rails and pg) and the repo didn't get any smaller. My app is no bigger than 2mb. So I deleted my app (along with my .git and .bundle directories) and created everything from scratch. This seemed to fix the problem, until just now, when I tried to remove 4 large gems from my Gemfile and didn't see any change in the size of my compiled slug on Heroku. Is this something that other people are experiencing? FWIW, I've tried everything I can think of, including removing Gemfile.lock, .bundle etc etc -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: odd issue with bundler, rails3, on bamboo 1.9.2
I'd move the requirement for daemons closer to the beginning in your Gemfile. So it will trump the other gem that requires a lower version. On Nov 5, 2010, at 1:04 PM, Steve Smith wrote: No sorry it is good practice I wanted to make sure that it was included sorry, but if you open up the lock file locally you should be able to see what is requiring daemons 1.1.0. or at least what may be requiring daemons. Do you need that specific version of daemons or would 1.1.0 work for you? I actually thought this was what the lock file is supposed to be solving though. Does anyone else know why it may not be being used? Steve On 5 Nov 2010, at 16:56, Kyle Bragger wrote: Yes lockfile is Commited. Read that was good practice. Not so? On 5 Nov., 12:52, Steve Smith st...@scsworld.co.uk wrote: I have a feeling daemons 1.1.0 is included as a requirement of something else, are you also committing the lock file? The lock file should also show you what is requiring what. Steve --http://cloudmailin.com @cloudmailin Incoming email for your web app On 5 Nov 2010, at 16:45, Kyle Bragger wrote: Hey all — setting up a vanilla Rails 3 app on the bamboo 1.9.2 stack and getting the following: You have already activated daemons 1.1.0, but your Gemfile requires daemons 1.0.10. Consider using bundle exec. Maybe I'm missing something obvious, but if the gemfile specifies the daemons version, why would Heroku barf? Thanks for the help! Here is my Gemfile: source 'http://rubygems.org' gem 'rails', '3.0.1' # Bundle edge Rails instead: # gem 'rails', :git = 'git://github.com/rails/rails.git' gem 'pg' gem 'devise' gem 'paperclip' gem 'daemons', '1.0.10' group :development do #gem 'test-unit' #gem 'redgreen' gem 'mongrel' gem 'heroku_san' end -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to 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 her...@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 her...@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 her...@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: Wildcard subdomains with GoDaddy
Hi Jeff, I had it working before I switched everything over to http://namecheap.com/ 2 things to try: 1) try an @ instead of a * 2) try using A records instead of a CNAME (3 of them) dns numbers are at http://docs.heroku.com/custom-domains 75.101.163.44 75.101.145.87 174.129.212.2 --Keenan On Nov 14, 2010, at 12:48 AM, Jeff wrote: Having trouble setting up GoDaddy for wildcard subdomains. I have one domain registered with Dreamhost, and it works fine. Not sure what's different with GD. I have the three A records: A @ 174.129.212.2 A @ 75.101.145.87 A @ 75.101.163.44 But I can't set up a CNAME like this: * CNAME proxy.heroku.com. With DH, this works. But with GD, I can't find the right way to handle. Any ideas? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: github help
You may want to double check the ref on prod. I see the app name is myapp but the ref is myapp-prod. (may be correct or a translation layer) Also, you may want to create a local branch for production. Up to you. Have that branch tied to production. But that is up to you / your workflow. Last: you have staging. If that is working for you, then it would seem prod should work as well. --K On Dec 3, 2010, at 5:47 AM, Graeme Simpson gra...@simmo.gs wrote: I've added a new remote origin, but what do I change the remote name to (does it matter) and the fetch line in my .git/config file? [remote heroku-staging] url = g...@heroku.com:myapp-staging.git fetch = +refs/heads/*:refs/remotes/heroku-staging/* [remote heroku-prod] url = g...@heroku.com:myapp.git fetch = +refs/heads/*:refs/remotes/heroku-prod/* At the moment I've added the lines above, but I'm a bit concerned that now I've changed things, when I run 'git push heroku-prod master' (assuming that's right!) it won't push a load of nonsense or break my live app. Or do I just have to try it! Cheers, Graeme On 2 December 2010 12:10, Alex a...@heaton.me wrote: Hopefully I haven't misunderstood. : Create a new repo on github, follow it's instructions for adding an existing project. (something like 'git remote add origin g...@github.com/blablabla' ) Now, just push and pull from your github repo instead. When you want to send changes to heroku, do a push to heroku. Use different branches for different release stages (staging, production etc). Does that make sense? On Dec 1, 1:59 pm, Graeme Simpson gra...@simmo.gs wrote: Hi there, I have an app on heroku at the moment and so far we've just been using git on heroku as our main repository. We need to switch things around so we use github most of the time and have a separate app for staging and testing. I found this excellent guide for setting up github with herokuhttp://suitmymind.com/blog/2009/06/02/deploying-multiple-environments... but it only covers new applications. Does anyone have any instructions (or could point me at an alternative guide) for switch the repos around to use github as the master? Thanks, Graeme -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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 her...@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: Wildcard subdomains with GoDaddy
Hello Barry, I like having a single url for my address. So I setup a redirect that bounced www.mydomain.com to http://mydomain.com/ I remember godaddy was a little tricky on this one. Think they were able to redirect www.mydomain.com to mydomain.com but able to redirect mydomain.com to www.mydomain.com But Orien's solution for using wild cards works as well. --Keenan On Dec 20, 2010, at 2:15 PM, Barry Welch wrote: I am also having trouble with GoDaddy + Heroku with wildcard subdomains In my setup, since GoDaddy apparently doesn't allow wildcard CNAMES, I currently have 3 A-records that look like this: A-Record * 75.101.163.44 A-Record * 75.101.163.44 A-Record * 75.101.163.44 .. with no CNAMES. Of course, this means 'http://www.mydomain.com' will load just fine, but 'http://mydomain.com' will not. Aside from changing registrars or using the Zerigo add-on, I am at a loss as to how to set this up. The Heroku documentation about wildcard domains is vague, stating: To use with a custom domain, configure your registrar to point *.yourdomain.com at heroku.com. If things are set up correctly you should be able to look up any arbitrary subdomain: ... which seems like a cop-out statement. Any ideas on this? On Nov 15, 11:57 am, Keenan Brock kee...@thebrocks.net wrote: Hi Jeff, I had it working before I switched everything over tohttp://namecheap.com/ 2 things to try: 1) try an @ instead of a * 2) try using A records instead of a CNAME (3 of them) dns numbers are athttp://docs.heroku.com/custom-domains 75.101.163.44 75.101.145.87 174.129.212.2 --Keenan On Nov 14, 2010, at 12:48 AM, Jeff wrote: Having trouble setting up GoDaddy for wildcard subdomains. I have one domain registered with Dreamhost, and it works fine. Not sure what's different with GD. I have the three A records: A @ 174.129.212.2 A @ 75.101.145.87 A @ 75.101.163.44 But I can't set up a CNAME like this: * CNAME proxy.heroku.com. With DH, this works. But with GD, I can't find the right way to handle. Any ideas? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/heroku?hl=en.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Changing an application when not an owner
Neil, You may want to check out this article: http://getsatisfaction.com/heroku/topics/can_i_use_different_heroku_credentials_on_different_projects Please share if any of those suggestions work for you. --Keenan On Jan 4, 2011, at 11:50 AM, Neil wrote: Back when the Heroku gem used a credentials file, we were able to change our 'user' from the command line so that we could interact with different apps (we have all our apps on a company account, but locally use our own accounts via collaboration) Question is, given that the credentials file is now gone, how can we we 'sudo' up to the app owner in order to make changes? Is there an easy way of changing user in the Heroku gem? -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: Smaller fonts in production?
Hi Carson You probably already tried this, but In your browser, for local dev, could you check your zoom level? You may have enlarged your font with command plus. There is a menu option for resetting it to normal view. (exact verbiage escapes me but should be near increase font size in view or window) Hope that helps --Keenan On Jan 4, 2011, at 7:01 PM, Carson Cole carson.c...@gmail.com wrote: My fonts appear 25% smaller in production on Heroku vs in development locally. Have only one style sheet 'main.css' that I load '%= stylesheet_link_tag 'main' %' that shows correctly in source code in production. What gives? Here's my stylesheet: /* DEFAULTS */ * { margin: 0; padding: 0; border: 0; } body { background-color: #fff; height: 100%; width: 100%; font: 13px Lucida Sans, Tahoma, Verdana, sans-serif; } a { margin-left: 7px; margin-top: 4px; float: left; } h1 { font-size: 2.5em; } h2 { font-size: 1.8em;} h3 { font-size: 1.6em; } h4 { font-size: 1.5em; } h5 { font-size: 1.4em;} p { font-size: 1.2em; } .clear { clear:both; } .right { float: right; } .left { float: left; } .email { margin-top: 5px; } .header { width: 100%;} .facebook_icon { margin-top: -1px;} .follow { background-color: #5f9e52; text-align: center; width: 100%; margin: 0 auto 0 auto; } .follow .frame {width: 350px;} .follow_text { font-size: 1.8em; color: #fff; float: left; margin-top: 3px; margin-left:8px; margin-right: 20px; } form {float: left;} form input { border: thin #fff solid; padding: .2em; font-size: .8em; } #footer { clear: both; text-align: center; margin-top: 1em; margin-bottom: 1em; font-size: .8em; color: #5f9ef2; } .frame { width: 650px; margin: 0 auto; } .marketing { font-size: 13px; background-color: #D0EBCA; } .marketing .frame { padding-top: 1em; padding-bottom: 1em; } .marketing h1 { margin-top: 0.5em; margin-bottom: .5em; font-weight: 500; color: #18649b; } .marketing h2 { font-weight: 500; margin-top: 1em; margin-bottom: .4em; color: #18649b; } .marketing p { font-size: 1.1em; line-height: 1.5em; } .logo { margin: 1em 0; width: 12em; } .notice { float: right; text-align: center; margin-top: 1em; width: 300px; color: #fff; } .notice .regular { padding: 10px; background-color: #18649b;} .notice .error { padding: 10px 20px; background-color: #f02311;} p.special_message { width: 300px; background-color: #18649b; text-align: center; color: #fff; padding: 10px; margin: 1.2em auto 1.3em auto;} -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: how to use Heroku in development with view designers?
It may be hard for the dev to develop haml/erb without the models to populate it. 1. Have them dev in pure html using a scratch directory in public. Create a separate git repo that only has your public in it You can go have public as a submodule route or you can just have 2 different projects and do duffs. Since you are going to need to translate back into haml/erb at some point anyway. Second idea is to keep models innocuous and put truely proprietary logic in external modules. Have them as a gem or plugin and don't include it in your main repo. One thought: Many designers I know are quite comfortable with haml/sass or erb/css. Or atleast they can tweak and improve it if not author it. Why work with people you don't trust? Why handicap them just to make more work for yourself? Rhetorical questions for you only. But I wanted to put out there. Keenan On Jan 5, 2011, at 9:10 AM, Lille lille.pengu...@gmail.com wrote: Hi, I developed a Rails app, now hosted on Heroku, and I would like to make it available to HTML and javascript contractors for further development in sort of a Rails-agnostic way, while keeping private certain parts of the app directory structure, viz., my models, which I consider proprietary. By 'Rails-agnostic', I hoped someone out there could confirm that development can proceed with front-end collaborators on Heroku relying solely on the collaborators' knowledge of Git, not the app platform, which is Rails. With regard to keeping certain parts of my app structure private, I understand this is possible on some source control systems. What about in the case of collaborating via Heroku? Thanks, Lille -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@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 her...@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: 1 hour inactivity idling and http caching
Hi, Heroku is providing a service for free. Which is great. So if no one is using your app, heroku swap the app out out so other apps can use the memory for their free apps. Think shared hosting. But for free. If you want your app to be a production app and always instantly available, then you may want to upgrade to 2 dynos ($36/month). --Keenan On Jan 7, 2011, at 10:12 AM, Jesse wrote: I set up http://pingdom.com/ to monitor my site, you can set it up to hit it every 5 minutes this will keep it 'up and running' on heroku as well as inform you of down time you get 1 url for free not sure if this will solve your problem as you have only 1 cached page, but something to consider? - Jesse On Jan 7, 3:44 am, Martin Petrov m.p.pet...@gmail.com wrote: Well, you must be right. I don't have a very good understanding of how it works. Thank you Smith! On Jan 7, 1:08 pm, Steve Smith st...@scsworld.co.uk wrote: Perhaps as the routing engine shuts down the app it also empties varnish. That would actually seem quite likely? On 7 Jan 2011, at 11:03, Martin Petrov wrote: If this is the case then I should remove http caching in order to prevent the app from shutting down as much as possible. But... why requesting a cached page starts the app if the request is never handled by the app? On Jan 7, 11:18 am, Steve Smith st...@scsworld.co.uk wrote: I'm not an expert on this so I would double check, however I think this is all the case, If you only have one dyno then the app will shutdown when there are no requests for a certain time period. I believe this isn't the case once you have more than one dyno but in my experience at that point you have enough concurrent connections to keep things alive anyway. If you are caching the page it will be stored in varnish so the request will never be handed out to the app and will therefore allow the app to shutdown. Steve On 7 Jan 2011, at 09:02, Martin Petrov wrote: Hi, Looking at my logs I see that if my application is not used for 1 hour its state is changed from up to down. Next time a request comes it takes several seconds to start again. Does requesting an http cached page keeps the application alive? My app has only one page, which is http cached. -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to 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 her...@googlegroups.com. To unsubscribe from this group, send email to 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 her...@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 her...@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: Block On File Upload
Hi Tobes, Not sure if this overlaps, but something else to consider: http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?uploadobjusingmpu.html Good luck, Keenan On Jan 13, 2011, at 3:33 PM, Jimmy Thrasher wrote: Hi Tobes, Unless they've removed the 30s hard limit, you should see those requests dying after 30s, but yes, in theory if it takes 10 minutes it blocks your upload. An approach I like but have never had the need to implement would be to use the upload by POST technique, described here: http://aws.amazon.com/articles/1434?_encoding=UTF8jiveRedirect=1 You basically create a signed URL with an expiration date which allows a user to upload to a bucket you have rights to. There are third party utilities, often written in Flash, to help you accomplish this. Hope that helps, Jimmy On Thu, Jan 13, 2011 at 3:28 PM, Tobes to...@tobinharris.com wrote: Hi guys Sorry, this is a lazy question... If we have 1 dyno, and a user uploads a file that takes 10 minutes, will the other requests to the app be blocked for 10 minutes? Looking at our logs it looks like that *is* the case. We do store files on S3 btw, but our Rails app receives the file and moves it to S3. It's the blocking we're interested in knowing about (I know Rails doesn't block usually) Tobin -- 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. -- +1-919-627-7546 -- 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: creating a virtual file
Hi Shai, It sounds like the app is using XML as their data store. And right now, rails (and Heroku) make it easier to use a relational db to store data. While you could hack together a solution that stores the data file in memcache, redis, or something, I wonder how hard it would be to just store the relationships as active record models in postgres. Think I'd either tweak to use SQL or use a different project. best of luck, Keenan On Jan 24, 2011, at 3:37 PM, bluewave shai.sayfanalt...@googlemail.com wrote: I have an application I want to use (http://www.flashxml.net/galleries/ ) this application needs to update an xml file with all the images information in it. if I would be working on disk based system I would just update this file so the web browser can read it. because I am using Heroku I can not update this file in the OS. do you know if I could use send_data to send this xml file instead of using the file on the OS? if you now how to do this please share this with me. 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. -- 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: Download rate 260 KB/s
Hi Oliver, For many static files, we are using amazon s3 / cdn That may work for you as well. --Keenan On Jan 25, 2011, at 2:30 PM, Dennis wrote: I believe the charges for an additional dyno(s) are usage based so it would be a relatively cheap experiment to add a dyno and do a test. I could be wrong in that there may be some flat charge in going from a free plan to a paid but I don't remember that being the case - it would be documented somewhere on the Heroku site. So add a dyno check the dl rates and then remove the dyno or better yet keep it in place for a month and enjoy the immediate response vs the delayed response of a first page hit (after an idle period of some minutes) while the single dyno spins up. A paid plan keeps the dynos spinning and available. On Jan 25, 11:46 am, obruening ollibruen...@googlemail.com wrote: I have a rails app installed on Heroku. It uses the 1 dyno free plan. I have measured the download rate with the download of a static file (200KB) from the rails public folder. The result is 260 KB/s. Are there better higher download rates in the paid plans? Best regards Oliver -- 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: Scaling - Big and Fast
Neil, A bit of a tangent, but... I'd imagine varnish may cut down the load on the dynos. Heroku may buy you quick scaling, but it also has other infrastructure (memcached, varnish) in place to alleviate the load. --Keenan On Feb 3, 2011, at 9:17 AM, Christos Zisopoulos wrote: 100k/minute !!! And I was excited about our 1.4k/minute... As far as I can tell: Using the UI at api.heroku.com you can get up to 24 dynos. Using the CLI, 100. heroku dynos 101 ! Dynos not allowed My guess is your DB will keel over and die way before the dynos run out. And upgrading the DB is a long winded process: upgrade plan, go into maintenance mode, make a backup, restore the backup... Hours for our app. -christos On 3 Feb 2011, at 15:08, Neil Middleton wrote: This week in the UK we had the launch of police.uk, an Django based site hosted on EC2. Pretty much straight away it went down through load. From talking to the developers, it transpires that they were seeing 100,000+ requests per minute, and had to draft in several hundred more EC2 instances to cope. Which leads me to a tasty hypothetical question. If for instance I wanted to launch a site like that on Heroku, are there any limits to where you can scale too and how long it might take? I know from experience that I can get 50 dynos within a couple of seconds, but surely there must be a point where this is a little harder to provision? Are there any known limits? What happens if I want, say, 5000 dynos right now? At what point does the DB layer start to suffer? How would Heroku handle a site of this magnitude appearing 'all of a sudden'? -- Neil Middleton http://about.me/neilmiddleton The internet's most comprehensive source for all things Neil Middleton -- 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.