Keep in mind that you don't need to set an environment variable for
your app name. Heroku already stores it in ENV["APP_NAME"].
Phillip Ridlen
@philtr
On Aug 13, 12:49 pm, mwhuss wrote:
> We actually have done this inhttp://appmark.it
>
> http://gist.github.com/522935
>
> Remember that domain na
We actually have done this in http://appmark.it
http://gist.github.com/522935
Remember that domain names on heroku are scoped to the user. So if the
user has example.com for another heroku app and they try to register
www.example.com with your app, it won't work.
--
Marshall
http://mwhuss.co
We do this exact thing in http://appmark.it
heroku_client = Heroku::Client.new(ENV['HEROKU_EMAIL'],
ENV['HEROKU_PASSWORD'])
heroku_client.add_domain(ENV['HEROKU_APP'], new_domain_name)
Also keep in mind that domains can only be scoped to user accounts, so
if they are already using example.com for
We actually have done this in http://appmark.it
http://gist.github.com/522935
Remember that domain names on heroku are scoped to the user. So if the
user has example.com for another heroku app and they try to register
www.example.com with your app, it won't work.
--
Marshall
http://mwhuss.co
This really intrigued me, so I thought I'd dig into the Heroku gem
(http://github.com/heroku/heroku/blob/master/lib/heroku/client.rb) and
see what I could find.
On line 120 of client.rb (http://github.com/heroku/heroku/blob/master/
lib/heroku/client.rb#L120) there is a function called add_domain.
This really intrigued me, so I thought I'd dig into the Heroku gem (
http://github.com/heroku/heroku/blob/master/lib/heroku/client.rb) and see
what I could find.
On line 120 of client.rb (
http://github.com/heroku/heroku/blob/master/lib/heroku/client.rb#L120) there
is a function called add_domain.
I ran into a similar need yesterday. I wanted to have a Heroku cron
task create a bundle of my app, to get a daily DB backup.
Here is my task:
task :cron => :environment do
require 'heroku'
heroku_username = ENV['HEROKU_USERNAME']
heroku_password = ENV['HEROKU_PASSWORD']
if heroku_userna
Hey,
look at this cool blog post, it's for an other problem,
but I think it's that what you need.
http://blog.darkhax.com/2010/07/30/auto-scale-your-resque-workers-on-heroku
Mit freundlichen Grüßen
Daniel Spangenberg
daniel.spangenb...@gmail.com
Am 12.08.2010 um 18:13 schrieb Brett:
> Hi all,
>
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 express