Re: Using Root domain CNAME for Heroku app

2008-11-06 Thread Keenan Brock
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]> wr

Re: Rails 2.1.1 Available?

2008-11-13 Thread Keenan Brock
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. Pleas

Re: cname issue on my server

2008-11-20 Thread Keenan Brock
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

Re: database configuration? - Can't connect to local MySQL server through socket

2008-11-22 Thread Keenan Brock
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

Re: Run Sinatra

2008-12-10 Thread Keenan Brock
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 p

Re: custom domain

2008-12-11 Thread Keenan Brock
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

Re: custom domain

2008-12-17 Thread Keenan Brock
il, it looks like my search for a Rails host continues. > > HY > > > > On Dec 11, 5:40 pm, Keenan Brock 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 mach

Sinatra at Heroku

2009-01-05 Thread Keenan Brock
Can you host Sinatra apps on Heroku? I really liked Adam's talk and wanted to try a rails -> Sinatra services app. Anyone done it? Maybe create a 2.2 app with everything turned off? If Heroku is using merb, then it seems it would be possible. I don't know the internals enough to say. --K

Re: CSS files not updating

2009-01-08 Thread Keenan Brock
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'

Re: within my app, a login is not working

2009-01-08 Thread Keenan Brock
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

Heroku | YamlDb for Database-Independent Data Dumps

2009-01-08 Thread Keenan Brock
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

Re: within my app, a login is not working

2009-01-08 Thread Keenan Brock
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.

Re: CSS files not updating

2009-01-14 Thread Keenan Brock
but it would be nice to know how to get the external css files to have > a more instant effect. > I think you'll have to take that up with the ie and firefox people. :) > cheers, > > DAZ > > > > On Jan 8, 6:15 pm, Keenan Brock wrote: >> Hi DAZ, >> >> Y

Tip for changing cname at godaddy

2009-01-15 Thread Keenan Brock
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, th

Re: Problems with herokugarden

2009-01-16 Thread Keenan Brock
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 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 a

Darn Internal server error

2009-01-20 Thread Keenan Brock
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

Re: nokogiri gem

2009-01-20 Thread Keenan Brock
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 accept

Re: Authentication failed

2009-01-25 Thread Keenan Brock
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 Her

Re: Database Missing?!

2009-01-30 Thread Keenan Brock
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

Re: Sql problem

2009-02-02 Thread Keenan Brock
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 t

Re: Sql problem

2009-02-02 Thread Keenan Brock
me 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 wrote: >> >>> Hi, >> >>> I

Re: multiple subdomains pointing at the same heroku instance

2009-02-10 Thread Keenan Brock
There is a Heroku and Herokugarden gem. They look similar but are different. Waiting for Adam to Github them so we can merge On Feb 10, 2009, at 4:52 PM, "S. Brent Faulkner" wrote: > > this is possible on heroku.com using the command-line utility (gem > install heroku) > > not sure if it

Re: Trying to commit through git gives authentication failure

2009-02-11 Thread Keenan Brock
You did a Heroku keys add? On Feb 11, 2009, at 9:31 PM, Kris S wrote: > > Sorry if I am missing something trivial, but I created an app vial the > upload since trying w/ git failed. I would however like to post > commits through git yet I am getting the same error when trying to > connect: >

Re: Bort and templates?

2009-02-16 Thread Keenan Brock
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

Re: quick question about heroku versus herokugarden

2009-02-21 Thread Keenan Brock
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)

Re: Caching dynamically generated images/graphs

2009-02-22 Thread Keenan Brock
Heh, Sounds like someone needs to put a little veneer on the current google charts apis. (there are a bunch of them out there) gruff-googlecharts gem :) On Feb 22, 2009, at 1:01 PM, Paul Leader wrote: > > Hi, > > Yes I have been looking at using google charts. However it seems > rather mo

Re: Ajax error

2009-02-22 Thread Keenan Brock
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

Re: Strange AR error

2009-02-22 Thread Keenan Brock
Just an idea. What happens if you use the ? Notation? :conditions=["firstPeer = ? or secondPeer = ?", @chatter.I'd,@chatter.id] Or use ["[firstPeer] = ? or [secondPeer] = ?]", ... Also, the convention is to have underscores rather than camel case. Going against that conventions is making t

Re: upload Rails app to Heroku / Herokugarden

2009-02-24 Thread Keenan Brock
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

Re: Strange AR error

2009-02-24 Thread Keenan Brock
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 -

Re: Initializers interfering with migration

2009-02-24 Thread Keenan Brock
Hi Felix, Sometimes migrations fail for me if I add a field and use the business logic in the model to populate the fields. Or an earlier migration uses some model logic that is changed at a later time. But definitely not the norm. Maybe putting the logging code in a rescue block? Some peo

Re: New App on Heroku not working

2009-03-04 Thread Keenan Brock
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 rai

Re: password on keys?

2009-03-06 Thread Keenan Brock
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 wrote: > > I have a password on my ssh key. > > Howcome heroku only inte

Re: Post-compile hooks?

2009-03-12 Thread Keenan Brock
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 wrote: > > I'd like somethi

Re: Rails 2.3 support

2009-03-17 Thread Keenan Brock
A shot in the dark but did you try 2.3 (without trailing .2) I'm on phone so can't try On Mar 17, 2009, at 6:30 AM, morgoth wrote: > > I wanted to switch to rails 2.3 and I get error: > > Missing the Rails 2.3.2 gem. Please `gem install -v=2.3.2 rails`, > update your RAILS_GEM_VERSION settin

Re: Subdomains

2009-03-20 Thread Keenan Brock
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 wrote: > > Anyone know how to get subdomains to automatically work with a private > heroku site? My site is www.brainbankhq.com.

Re: Problem moving from herokugarden - rake aborted! Don't know how to build task 'db:data:load'

2009-03-22 Thread Keenan Brock
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 wrote: > > I'v

Re: Multiple domains pointing to heroku app?

2009-04-05 Thread Keenan Brock
herokugarden only allows one I believe the command line for heroku allows multiple --Keenan On Apr 5, 2009, at 5:38 PM, GreenAsJade wrote: > > The heroku "my apps" interface only offers one line to enter a CNAME > for your app. > > I was hoping to have both cmmods.greenasjade.net and > cmmods.

Re: Caveats for root-level domain?

2009-04-12 Thread Keenan Brock
Having a primary domain as a cname sometimes messes with mail mx records. Sometimes the DNS host can't figure it out. Godaddy gave me all sorts of issues setting up the cname. But all in all, it works in the end. Other DNS hosts are easier. Best of luck --Keenan On Apr 11, 2009, at 9:06

Re: Graphviz and Dot

2009-04-17 Thread Keenan Brock
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, pd

Re: Graphviz and Dot

2009-04-17 Thread Keenan Brock
#x27;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 wrote: >> dot (and nice)is a command line app. >> >> Graphviz

Re: Graphviz and Dot

2009-04-17 Thread Keenan Brock
rvices 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 wrote: >> Tobes. >> >> I too would love to see graphviz on hero

Re: Graphviz and Dot

2009-04-17 Thread Keenan Brock
ally 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" wrote: >> >> >>

Re: Good DNS hosting?

2009-04-25 Thread Keenan Brock
+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 wrote: > > sigh, that'd be zoneedit.com with two ees. > > > > On Apr 25, 3:42 pm, GreenAsJade wrote:

Re: Git/Heroku on Windows

2009-06-02 Thread Keenan Brock
Hi Ed, it looks like you don't have a HOME variable set so it is trying to store your ssh key in c:\.ssh > mkdir c:\.ssh > ssh-keygen -t rsa and make sure the public/private keys are copied into the directory. > heroku keys:add Good luck --Keenan On Jun 2, 2009, at 12:58 PM, Ed Jones w

Re: Git/Heroku on Windows

2009-06-02 Thread Keenan Brock
l or external command, > operable program or batch file. > > C:\ssh> > > Ed > > > > On Jun 2, 1:26 pm, Keenan Brock wrote: >> Hi Ed, >> >> it looks like you don't have a HOME variable set >> >> so it is trying to store your ssh key in

Re: Adva CMS

2009-07-27 Thread Keenan Brock
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...@l

Re: Adva CMS

2009-07-27 Thread Keenan Brock
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

Re: DNS Confusion

2009-07-28 Thread Keenan Brock
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 un

Re: Staging Environments

2009-07-30 Thread Keenan Brock
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

Re: herokugarden is down again

2009-08-07 Thread Keenan Brock
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 wrote: > my application in herokugarden doesn't work > > -- > // nacho > > > --~--~-~--~~~---~--~~ You received this message because you are su

Re: Passing environment variables to rake

2009-08-07 Thread Keenan Brock
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, Keenan w

Re: Workflow for compressing JavaScript and CSS using YUI Compressor prior to deployment

2009-08-13 Thread Keenan Brock
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 He

Re: Workflow for compressing JavaScript and CSS using YUI Compressor prior to deployment

2009-08-13 Thread Keenan Brock
n 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 >

Resetting the database

2009-08-27 Thread Keenan Brock
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 Hero

Re: Resetting the database

2009-08-27 Thread Keenan Brock
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 Brock > wrote: >> Hi All, &g

Re: Put an application into maintenance state

2009-09-03 Thread Keenan Brock
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 t

Re: Put an application into maintenance state

2009-09-03 Thread Keenan Brock
> 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 Broc

Re: Put an application into maintenance state

2009-09-04 Thread Keenan Brock
gt; > http://groups.google.com/group/heroku/browse_thread/thread/7963db5d7691f52e/ > > Note that RACK_ENV always stayed set, in case that's what you saw. > > > On Sep 4, 1:08 pm, Keenan Brock wrote: >> Hi GaJ >> >> I just tested and it looks like it works the way yo

Re: Protecting your production environment

2009-09-15 Thread Keenan Brock
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

Re: Protecting your production environment

2009-09-15 Thread Keenan Brock
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

Re: Put an application into maintenance state

2009-09-18 Thread Keenan Brock
sh 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

Re: Git

2009-09-21 Thread Keenan Brock
(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 Find the git: url git re

Re: Installing Radiant extension

2009-09-25 Thread Keenan Brock
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, > > Thank

Re: installing gems from gemcutter not as it should be

2009-11-02 Thread Keenan Brock
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 gemcut

Re: db:push unable to find taps

2009-12-02 Thread Keenan Brock
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 proje

Re: How can I disable models and/or tweak config.load_paths?

2009-12-03 Thread Keenan Brock
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 intent

Re: Nesta

2009-12-29 Thread Keenan Brock
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 yo

Re: Accidental 'heroku db:reset'

2010-01-09 Thread Keenan Brock
Hi Ryan, I tend to not use the Heroku commands from the command line. I created a rake task staging:push that resets and pushed and migrates and shows a splash page and shows a warning. Maybe even git tag while you are at it. You can call it s:push and p:push (staging, production) if you w

Re: flush memcached?

2010-01-23 Thread Keenan Brock
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 play

Re: dns wtf for .it domain

2010-02-08 Thread Keenan Brock
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 p

Re: A key is required to write a cookie containing the session data.

2010-02-09 Thread Keenan Brock
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 O

Re: "Taps Server Error: year too big to marshal" when doing a db:pull

2010-02-15 Thread Keenan Brock
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 succes

Re: Suggestion: Make db:push a little safer

2010-03-25 Thread Keenan Brock
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(ar

Re: Using Time.now in AR#find :conditions - not working correctly?

2010-04-20 Thread Keenan Brock
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,

Re: Time zone issue, Rails 3 - Time.zone = set, but heroku still using local server time

2010-05-03 Thread Keenan Brock
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

Re: sharing app on multiple machines

2010-05-11 Thread Keenan Brock
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 an

Re: Deploying with Bundler from private repos on GitHub

2010-05-12 Thread Keenan Brock
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

Re: development works fine but production on heroku complain about caling count on []

2010-05-12 Thread Keenan Brock
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

Re: Do you pay for multiple apps, or only multiple dynos per app?

2010-05-17 Thread Keenan Brock
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/q

Re: hosting app on root domain?

2010-05-19 Thread Keenan Brock
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:

Re: hosting app on root domain?

2010-05-19 Thread Keenan Brock
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 wrote: > John, > > Also don't forget. > > Hosting the root

Re: MySQL --> Postgres LIKE find error

2010-05-25 Thread Keenan Brock
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

Re: Rails 2.3.6

2010-05-25 Thread Keenan Brock
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

Re: is it possible to allow users to use CNAME or A to point custom domains at my heroku app?

2010-06-01 Thread Keenan Brock
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 t

Re: Spree 0.10.2 can't start on Heroku

2010-06-02 Thread Keenan Brock
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

Re: EXIF support on Heroku?

2010-06-08 Thread Keenan Brock
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,

Re: Newrelic Bronze and Heroku

2010-06-11 Thread Keenan Brock
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 wrote: Heroku is offering

Re: Preserve cache

2010-06-12 Thread Keenan Brock
S3? On Jun 12, 2010, at 2:41 PM, Alan B 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

Re: Project.where(:status => true)

2010-06-16 Thread Keenan Brock
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

Re: Failing Routes

2010-06-21 Thread Keenan Brock
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 >

Re: Programmatically Spinning Workers Up and Down

2010-06-23 Thread Keenan Brock
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 Sky

Re: how to setup mime-type in my rails app

2010-06-23 Thread Keenan Brock
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: >

Re: how to setup mime-type in my rails app

2010-06-24 Thread Keenan Brock
> 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 wrote: &

Re: Ruby 1.9.2

2010-08-30 Thread Keenan Brock
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

Re: free vs. paid heroku app performance

2010-08-31 Thread Keenan Brock
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 t

Re: Automatic tagging of your 'real' git repo after push

2010-09-08 Thread Keenan Brock
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 pin

Re: Git, SVN and Heroku

2010-09-10 Thread Keenan Brock
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 a

Re: wonderful platform for app staging...

2010-09-20 Thread Keenan Brock
Hi Roy, Have you checked out http://docs.heroku.com/ ? --Keenan On Sep 20, 2010, at 8:32 PM, Roy Wang 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 wrote: > I

Re: Caching of /public files

2010-09-22 Thread Keenan Brock
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

  1   2   >