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]

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. Please `gem

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

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
(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

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

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

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

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

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,

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 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

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

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

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

Re: Sql problem

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

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,

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

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: 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,

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: 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 rails

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 martin.jg.greg...@gmail.com wrote: I have a password on my ssh key.

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 nanode...@gmail.com wrote:

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 mel...@volcanicmarketing.com wrote: Anyone know how to get subdomains to automatically work with a private heroku site? My

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

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,

Re: Graphviz and Dot

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

Re: Graphviz and Dot

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

Re: Graphviz and Dot

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

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 martin.jg.greg...@gmail.com wrote: sigh, that'd be zoneedit.com with two ees. On Apr 25, 3:42

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,

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

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 na...@yestoall.com wrote: my application in herokugarden doesn't work -- // nacho --~--~-~--~~~---~--~~ You received this message because

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,

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

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

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

Re: Resetting the database

2009-08-28 Thread Keenan Brock
$ 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:

Re: Put an application into maintenance state

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

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

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
: /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

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 app name Find the git:

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, Thanks a

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

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

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 intention

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

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

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

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 On

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

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 =

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

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

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:

Re: hosting app on root domain?

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

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

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

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 amir.na...@gmail.com wrote:

Re: Preserve cache

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

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

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
://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

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

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

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

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

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 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

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

Re: Caching of /public files

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

Re: inconsistent Memcache reads

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

Re: two heroku apps talking to same db

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

Re: two heroku apps talking to same db

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

Re: Compiled Slug size not changing after removing large gems from Gemfile

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

Re: odd issue with bundler, rails3, on bamboo 1.9.2

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

Re: Wildcard subdomains with GoDaddy

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

Re: github help

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

Re: Wildcard subdomains with GoDaddy

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

Re: Changing an application when not an owner

2011-01-04 Thread Keenan Brock
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

Re: Smaller fonts in production?

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

Re: how to use Heroku in development with view designers?

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

Re: 1 hour inactivity idling and http caching

2011-01-07 Thread Keenan Brock
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

Re: Block On File Upload

2011-01-13 Thread Keenan Brock
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

Re: creating a virtual file

2011-01-24 Thread Keenan Brock
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

Re: Download rate 260 KB/s

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

Re: Scaling - Big and Fast

2011-02-03 Thread Keenan Brock
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

  1   2   >