Use Heroku gem from within application?

2010-08-12 Thread Brett
Hi all,

I want to let users purchase custom domain names to access my app on
Heroku.  When the purchase transaction takes place, I'd like to add
the custom domain to my app in real time.  I thought of using the
Heroku gem/command line tool from within the app, analagous to the
command-line expression:
heroku domains:add www.example.com

Is this possible?  If so, what is the syntax?

Thanks!

Brett


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



App Failed to Start -- JSON BUG?

2010-06-25 Thread Brett
Hi all,

We're having intermittent errors with our preliminary app (http://
fromus.heroku.com).

Occasionally we're getting an App Failed to Start screen (e.g., on
the home screen), but then on reload the page will load fine.  It's
very intermittent and unpredictable.  I have copied the error log
below, and it there's a JSON bug reported...

Does anyone know what this is?  Or have any advice how I can figure it
out?  We're planning to launch within the next week, and we need to
make sure this is running smoothly first.

Thanks,
Brett


App failed to start

Check out the troubleshooting section on our Documentation site.
Original Error

** [NewRelic] New Relic RPM Agent 2.12.3 Initialized: pid = 3298
** [NewRelic] Agent Log found in /disk1/home/slugs/184992_3ae2c09_5807/
mnt/log/newrelic_agent.log
/disk1/home/slugs/184992_3ae2c09_5807/mnt/app/helpers/
application_helper.rb:103: warning: parenthesize argument(s) for
future version
 Thin web server (v1.0.1 codename ?)
 Maximum connections set to 1024
 Listening on 0.0.0.0:47491, CTRL+C to stop
** [NewRelic] Connected to NewRelic Service at collector5.newrelic.com:
80
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/json/encoding.rb:18: [BUG] object allocation during
garbage collection phase
ruby 1.8.6 (2008-08-11) [x86_64-linux]


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



Recording user IP address in SQL database

2010-04-26 Thread Brett
Hi all,

I've built a simple Rails app that now works on Heroku (http://
LetThemPlayHorse.com).

I'm trying to record users' IP addresses to a SQL database using the
following command from my signatures controller in the create
action:
@signature.ip_address = request.remote_ip
where ip_address is a char type

This works great on my local Mongrel server, but I get an error on
Heroku -- the console tells me:
NameError: undefined local variable or method `request'

Do you have any advice or suggestions?

Many thanks!
Brett

-- 
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: Default index page on Heroku server

2010-04-22 Thread Brett
Thanks, Oren.

I had deleted public/index.html from my local directory, and then I
used git push heroku master to replicate the updated version to the
server.

However, this appears not to have deleted the file from public/
index.html, and I cannot find any documentation on how to do so.  Do
I use git?  Can I use an FTP client to access my Heroku app and
manually delete the file?

Thanks in advance for your help here!


On Apr 19, 6:13 pm, Oren Teich o...@heroku.com wrote:
 Did you remove public/index.html?

 Oren



 On Mon, Apr 19, 2010 at 4:15 PM, Brett brett.huneyc...@gmail.com wrote:
  Hi all,

  I'm having a problem with the default index page on an app I've
  recently uploaded tohttp://lebronandkobe2.heroku.com.

  I want my custom signatures controller to appear instead of the the
  standard Rails welcome screen.  I changed config/routes.rb
  (map.root :controller = signatures), which works on my local
  Mongrel server.  However it does not work on Heroku.  I also ran
  heroku rake routes which reports that my change should have worked.
  From the log file:
  root        /
  {:action=index, :controller=signatures}

  Any advice is much appreciated!

  (FYI, the page I am trying to load by default is available
 http://lebronandkobe2.heroku.com/signatures)

  Thanks!

  Brett

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



Default index page on Heroku server

2010-04-19 Thread Brett
Hi all,

I'm having a problem with the default index page on an app I've
recently uploaded to http://lebronandkobe2.heroku.com.

I want my custom signatures controller to appear instead of the the
standard Rails welcome screen.  I changed config/routes.rb
(map.root :controller = signatures), which works on my local
Mongrel server.  However it does not work on Heroku.  I also ran
heroku rake routes which reports that my change should have worked.
From the log file:
root/
{:action=index, :controller=signatures}

Any advice is much appreciated!

(FYI, the page I am trying to load by default is available
http://lebronandkobe2.heroku.com/signatures)

Thanks!

Brett

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