Re: Best way to DB import 1M+ rows?

2010-12-09 Thread johnb
If it's just a single table and you have it in a db locally then
db:push --tables  would get it up to heroku - but this will
replace the contents of the remote table with the local table and not
append to it. If the application is live you could put it into
maintenance mode, db:pull --tables  append your rows to it
and then push the table back and put the app live...


perhaps?


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.



Re: can't deploy Rails 3 release candidate apps

2010-07-27 Thread johnb
It usually takes Heroku a week to test the latest bundler before
deploying it -


On Jul 27, 1:34 am, Daniel Kehoe  wrote:
> Heroku, please update Bundler to 1.0.0.rc.1 so we can use our Rails 3
> apps.
>
> The Rails 3 release candidate is out and now we can't deploy Rails 3
> apps to Heroku.
>
> I get
>
> -> Gemfile detected, running Bundler
>        Unresolved dependencies detected; Installing...
>        Fetching source index fromhttp://rubygems.org/
>        No compatible versions could be found for required
> dependencies:
>            Conflict on: "bundler":
>            * bundler (0.9.26) activated by bundler (= 0.9.26, runtime)
>            * bundler (>= 1.0.0.rc.1, runtime) required by rails (=
> 3.0.0.rc, runtime)
>            All possible versions of origin requirements conflict.
>
> Thanks,
> Daniel

-- 
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: get the production log of my application

2010-07-23 Thread johnb
or not maybe, your paste was wrapping on my screen.

On Jul 23, 1:10 pm, johnb  wrote:
> looks like you're in your rvm folder - try it from the project folder
>
> On Jul 23, 12:31 am, Sergio Lima  wrote:
>
>
>
> > ok john tks but it didn't work.
>
> > I received the following error:
>
> > Qui Jul 22 05:48:00 $ heroku logs
> > /Users/sergiosouzalima/.rvm/
> > gems/ruby-1.9.2-h...@rails3beta/gems/rest-client-1.4.2/lib/restclient/excep 
> > tions.rb:76:in
> > `http_body': undefined method `body' for nil:NilClass (NoMethodError)
> >     from 
> > /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/gems/heroku-1.9 
> > .7/lib/heroku/command.rb:33:in
> > `rescue in run'
> >     from 
> > /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/gems/heroku-1.9 
> > .7/lib/heroku/command.rb:18:in
> > `run'
> >     from 
> > /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/gems/heroku-1.9 
> > .7/bin/heroku:13:in
> > `'
> >     from 
> > /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/bin/heroku:19:i 
> > n
> > `load'
> >     from 
> > /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/bin/heroku:19:i 
> > n
> > `'
>
> > --
>
> > Sergio Lima
> > sergiosouzal...@gmail.comwww.sergiosouzalima.com.br
> > Contacte-me [image: Facebook] 
> > <http://www.facebook.com/sergiosouzalima>[image:
> > Linkedin] <http://br.linkedin.com/in/sergiosouzalima>[image:
> > Orkut]<http://www.orkut.com.br/Main#Profile?uid=5481058371846280601>[image:
> > Twitter] <http://twitter.com/sergiosouzalima>
>
> > --- @ WiseStamp
> > Signature<http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>.
> > Get it 
> > now<http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>
>
> > On Thu, Jul 22, 2010 at 3:46 PM, johnb  wrote:
> > > heroku logs
>
> > > in ur local project folder in terminal
>
> > > John
>
> > > On Jul 20, 9:16 am, Sergio Lima  wrote:
>
> > > > Hi group,
>
> > > >    I'm a Heroku user. I have an application in Rails 3 and ruby 1.9.2
> > > hosted
> > > > at Heroku.
>
> > > >    Please I have to get the production log of my application. How can I
> > > do
> > > > that ?
>
> > > > tks
> > > > --
>
> > > > Sergio Lima
> > > > sergiosouzal...@gmail.comwww.sergiosouzalima.com.br
> > > > Contacte-me [image: Facebook] <http://www.facebook.com/sergiosouzalima
> > > >[image:
> > > > Linkedin] <http://br.linkedin.com/in/sergiosouzalima>[image:
> > > > Orkut]<http://www.orkut.com.br/Main#Profile?uid=5481058371846280601
> > > >[image:
> > > > Twitter] <http://twitter.com/sergiosouzalima>
>
> > > > --- @ WiseStamp
> > > > Signature<
> > >http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>.
> > > > Get it now<
> > >http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>
>
> > > --
> > > 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: get the production log of my application

2010-07-23 Thread johnb
looks like you're in your rvm folder - try it from the project folder

On Jul 23, 12:31 am, Sergio Lima  wrote:
> ok john tks but it didn't work.
>
> I received the following error:
>
> Qui Jul 22 05:48:00 $ heroku logs
> /Users/sergiosouzalima/.rvm/
> gems/ruby-1.9.2-h...@rails3beta/gems/rest-client-1.4.2/lib/restclient/excep 
> tions.rb:76:in
> `http_body': undefined method `body' for nil:NilClass (NoMethodError)
>     from 
> /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/gems/heroku-1.9 
> .7/lib/heroku/command.rb:33:in
> `rescue in run'
>     from 
> /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/gems/heroku-1.9 
> .7/lib/heroku/command.rb:18:in
> `run'
>     from 
> /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/gems/heroku-1.9 
> .7/bin/heroku:13:in
> `'
>     from 
> /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/bin/heroku:19:i n
> `load'
>     from 
> /Users/sergiosouzalima/.rvm/gems/ruby-1.9.2-h...@rails3beta/bin/heroku:19:i n
> `'
>
> --
>
> Sergio Lima
> sergiosouzal...@gmail.comwww.sergiosouzalima.com.br
> Contacte-me [image: Facebook] <http://www.facebook.com/sergiosouzalima>[image:
> Linkedin] <http://br.linkedin.com/in/sergiosouzalima>[image:
> Orkut]<http://www.orkut.com.br/Main#Profile?uid=5481058371846280601>[image:
> Twitter] <http://twitter.com/sergiosouzalima>
>
> --- @ WiseStamp
> Signature<http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>.
> Get it 
> now<http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>
>
>
>
> On Thu, Jul 22, 2010 at 3:46 PM, johnb  wrote:
> > heroku logs
>
> > in ur local project folder in terminal
>
> > John
>
> > On Jul 20, 9:16 am, Sergio Lima  wrote:
>
> > > Hi group,
>
> > >    I'm a Heroku user. I have an application in Rails 3 and ruby 1.9.2
> > hosted
> > > at Heroku.
>
> > >    Please I have to get the production log of my application. How can I
> > do
> > > that ?
>
> > > tks
> > > --
>
> > > Sergio Lima
> > > sergiosouzal...@gmail.comwww.sergiosouzalima.com.br
> > > Contacte-me [image: Facebook] <http://www.facebook.com/sergiosouzalima
> > >[image:
> > > Linkedin] <http://br.linkedin.com/in/sergiosouzalima>[image:
> > > Orkut]<http://www.orkut.com.br/Main#Profile?uid=5481058371846280601
> > >[image:
> > > Twitter] <http://twitter.com/sergiosouzalima>
>
> > > --- @ WiseStamp
> > > Signature<
> >http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>.
> > > Get it now<
> >http://my.wisestamp.com/link?u=xtc3rwygbx8jm5wp&site=www.wisestamp.co...>
>
> > --
> > 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: get the production log of my application

2010-07-22 Thread johnb
heroku logs

in ur local project folder in terminal

John

On Jul 20, 9:16 am, Sergio Lima  wrote:

> Hi group,
>
>    I'm a Heroku user. I have an application in Rails 3 and ruby 1.9.2 hosted
> at Heroku.
>
>    Please I have to get the production log of my application. How can I do
> that ?
>
> tks
> --
>
> Sergio Lima
> sergiosouzal...@gmail.comwww.sergiosouzalima.com.br
> Contacte-me [image: Facebook] [image:
> Linkedin] [image:
> Orkut][image:
> Twitter] 
>
> --- @ WiseStamp
> Signature.
> Get it 
> 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.



Re: keep-alive time?

2010-07-22 Thread johnb
yeah, if a request takes too long then Heroku would kill the request,

"If your dyno takes more than 30 seconds to respond to a request, the
mesh will serve a “Request Timeout” page to the user."

from

http://docs.heroku.com/performance

Hope that helps,

John.

On Jul 20, 7:50 pm, Kevin Patel  wrote:
> What is the Keepalive interval on heroku, 30secs?

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



Wildcard domains with SSL?

2010-07-22 Thread johnb
What addon would I need to use wildcards domains with a wildcard SSL -
is that the $100 beast of an SSL addon?

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.



Re: A conclusive way to "package" static assets

2010-07-19 Thread johnb
we're using asset packager as part of our deployment process which is
working well for us,

john.


On Jul 19, 5:53 am, Adam Wiggins  wrote:
> On Sun, Jul 18, 2010 at 5:44 PM, Julio Cesar  wrote:
> > The official docs[1] say:
>
> > "There is no guarantee that this file will be there on subsequent
> > requests (although it might be), so this should not be used for any
> > kind of permanent storage."
>
> > And you just pointed out:
>
> > "and that way you'll only do it once per dyno restart"
>
> Your tmp directory does persist as long as your dyno or worker does,
> generally no less than a couple of hours and no more than a day.  This
> makes it suitable for use to write bundled assets on startup.
>
> The docs simplify this a bit by advising developers not to trust that
> the tmp dir will stay the same between requests.  This is true - if
> dyno #2 handles a request and dyno #4 handles the next one, they'll
> have different tmp dirs.  But it doesn't say anything about the tmp
> dir's relationship to the lifetime of the dyno or worker process.  We
> should update that since it would be valuable information in this
> case.
>
> Adam

-- 
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: Bundler error on deploy: not in gzip format (Zlib::GzipFile::Error)

2010-07-06 Thread johnb
saw this yesterday working locally...I think it's a bundler problem

 
http://stackoverflow.com/questions/2494659/strange-bundler-error-tar-input-rb49in-initialize-not-in-gzip-format-zlib

jb.

On Jun 30, 10:40 am, Thibaud Guillaume-Gentil
 wrote:
> When I try to deploy, I got randomly this error (works fine on my
> machine).
>
> /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:
> 49:in `initialize': not in gzip format (Zlib::GzipFile::Error)
>
> Any ideas?
>
> Thibaud

-- 
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: paperclip 2.3.3 - "identify" error

2010-07-06 Thread johnb
did you try without specifying the command path on production?

On Jul 5, 3:33 am, chuck  wrote:
> followed tutorial, runs perfect on local machine, rails 2.3.5
>
> i get the following error on Heroku in the logs:
> [paperclip] /opt/local/bin/identify '-format' '%wx%h' '/home/slugs/
> 221680_e90f18a_765b/mnt/tmp/stream,17134,0.jpg[0]' 2>/dev/null
>
> model:
> has_attached_file :photo,
> :styles => { :medium => ["500x500>", :jpg], :thumb =>
> ["150x150>", :jpg] },
> :storage => :s3,
> :s3_credentials => {:access_key_id => "my_key", :secret_access_key =>
> "my_secret"},
> :path => ":attachment/:id/:style.:extension",
> :bucket => "my_bucket"
>
> config/initializers/paperclip.rb
> Paperclip.options[:command_path] = '/usr/bin'
>
> (no matter what i change path to, doesn't make any difference)
>
> there's nothing on Google re: this error - have i missed a
> configuration somewhere?
>
> thanks,
> chuck

-- 
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: db:push Errors?

2010-07-01 Thread johnb

Are you using ruby 1.9 by any chance?


On Jun 30, 10:48 pm, Chromag9  wrote:
> Does anyone have any idea why I'm getting the following error when I
> attempt to do a "heroku db:push" ?
>
> Sending indexes
> Sending data
> 4 tables, 2 records
> news_entries:    0%
> |
> | ETA:  --:--:--
> Saving session to push_201006301444.dat..
> !!! Caught Server Exception
> HTTP CODE: 500
> Taps Server Error: instance of DateTime needs to have method
> `marshal_load'
>
> Should I be using something other thatn DateTime or something?
>
> 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.



Re: Trying to migrate to Bamboo

2010-06-29 Thread johnb
try it with a clean app on heroku, you can create the app on bamboo on
initial creation - although I've never had a problem migrating an app
over to bamboo

heroku create myapp --stack bamboo --remote my2ndbambootest

--remote specifies what the remote git repo will be referred to
locallly.

and the push to the new app

git push my2ndbambootest master

hth,

john.

On Jun 29, 4:22 am, geolev  wrote:
> I developed my app and tried to deploy it to Heroku but it complained
> with:
>
>  !     This version of Rails is only supported on the Bamboo stack
>  !     Please migrate your app to Bamboo and push again.
>  !     Seehttp://docs.heroku.com/bamboofor more information
>  !     Heroku push rejected, incompatible Rails version
>
> I started following the instructions provided athttp://docs.heroku.com/bamboo
> but I can deploy to trybamboo and I can run the app.
>
> This appears to work:
> git push trybamboo master
>
> But then when I try this from the project folder: heroku stack:migrate
> bamboo-ree-1.8.7
>
> I get the following:
> No app specified.
> Run this command from app folder or set it adding --app 
>
> When I try to specify the --app name, it get the following:
> !   Internal server error
>
> Does anybody have any suggestions?
>
> 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.



Re: Deployment Planning and general safeguards

2010-06-25 Thread johnb
Arron,

Could you share those rake tasks? Be interested in checking them out

cheers,

john


On Jun 23, 5:58 am, Arron Washington  wrote:
> Nobody?
>
> OK, I'll share what I do. :3
>
> For an important project hosted on Heroku (that I don't want to go
> down), I tend to wrap everything up in rake tasks that handle
> deployment, caching assets on Amazon S3/Cloudfront, etc. As part of
> these tasks, I also include the ability to roll back to a previous (or
> arbitrary) Git commit. I use the 'git' gem to handle these commands
> internally, and since there's always an official repo that isn't
> hosted by Heroku, it's safe to nuke the Heroku repositories using the
> '--force' flag when required. Once the tasks are developed and the app
> is live, nobody is allowed to do a raw `git push` to the Heroku
> remotes anymore.
>
> We keep our environments/staging.rb as close to our environments/
> production.rb as possible.
>
> Deploy tasks also capture a Heroku bundle for each deploy, but I think
> the Heroku bundles also take a snapshot of the database -- data is
> generally not something we're willing to use during an emergency
> recovery, so we don't use the bundles. They're there just in case.
>
> On Jun 18, 7:49 pm, Neil Middleton  wrote:
>
>
>
> > Following on partly from my earlier email about support:
>
> > We have an app that we've deployed a production and staging environment for.
> >  The idea being that all deployments go via staging prior to production as a
> > way of testing that Heroku is happy to spin up and 'accept' our application
> > (config is nearly always the issue).
>
> > Question is, what steps do people do to prevent themselves from ending up
> > with a production app that's failing to start?  I know some users are
> > pushing a large amount of traffic where downtime is unacceptable, so what do
> > you do to protect yourself?  How do you recover if things go bad?
>
> > For anyone to trust something as different as Heroku, I think you have to
> > know how to get back to a working state asap without outside intervention
> > where possible.

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

2010-05-20 Thread johnb
yep, all up and running now on the root domain - and this particular
domain is on GoDaddy DNS

jb

On May 20, 1:27 am, Keenan Brock  wrote:
> 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  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  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 notwww.myapp.com- I can
> > >> setup redirects from myapp.com towww.myapp.comin 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 
> > >> 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 
> > 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 
> 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.



Re: hosting app on root domain?

2010-05-19 Thread johnb
wow, completely missed that in the docs

thanks Oren!

On May 19, 9: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  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 notwww.myapp.com- I can
> > setup redirects from myapp.com towww.myapp.comin 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 
> > 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.



hosting app on root domain?

2010-05-19 Thread johnb
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.



Re: Howto: automate DB backups

2010-04-15 Thread johnb
I use www.backupmyapp.com - pretty neat service, files + database.

On Apr 15, 5:52 am, Trevor Turk  wrote:
> I'm not too thrilled with the current backup options Heroku is
> offering, but I had to do something. So, I wrote up an article that
> shows how I'm enabling automatic nightly PostgreSQL database backups
> from Heroku to Amazon S3.
>
> http://almosteffortless.com/2010/04/14/automated-heroku-backups/
>
> Feedback is more than welcome. 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.



Re: Slightly OT: Backups and S3

2010-01-08 Thread johnb
I've been playing with backupmyapp.com - they recently changed their
pricing model and made it much more viable - works fine with Heroku
too..that might be just the ticket for you

I'd imagine they're using s3 behind the scenes.

john.

On Jan 7, 7:18 pm, Matt Buck  wrote:
> Baz,
>
> You don't really need to be too concerned about backing up files that are
> already stored on S3.  Those files are thoroughly replicated on Amazon's
> end.  For an added measure of security, you could duplicate your files from
> S3 to some other cloud storage service (i.e. cloudfiles), but it would
> probably be more trouble and cost than it's worth.
>
> - Matt Buck
>
> On Thu, Jan 7, 2010 at 9:24 AM, Baz  wrote:
> > I'm considering using Heroku for a new app that I'm working on - but
> > I'm not too sure about backups.
>
> > I can grab a bundle every night, or use this:
> >http://nickmerwin.com/easily-backup-your-heroku-database-to-s3just to
> > grab the database (as I've already got my code stored in source
> > control so I may as well save on bandwidth).
>
> > But what about files that my app has uploaded to S3?
>
> > My other apps (on traditional VPSes) have backup routines that put the
> > backups onto S3 - so I have two copies of everything (one on the VPS
> > and one on S3).  But this app, because of the filesystem will need to
> > push stuff onto S3 straight away - so I'll only have a single copy.
> > Is that safe?  I can't find much detail about what Amazon will do in
> > the case of a disaster.
>
> > Also - my app will have a warning stating that you should keep your
> > own copies of these files but no-one ever reads warnings, so it's best
> > to ask the question I feel.
>
> > Cheers
>
> > Baz.
>
> > --
> > 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: reading database.yml

2009-11-28 Thread johnb
the environment variable ENV['DATABASE_URL'] will contain the database
url that is being used on heroku apps - read that to get the db url ur
app is using then set it in the app u want to share db with perhaps?

johm.

On Nov 28, 11:00 am, Emanuele Tozzato  wrote:
> .. and the .yml file can only be written to the tmp folder, right?
>
>
>
> >    [fetch db.yml and reconnect]

--

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: Any plans for some sort of shared storage?

2009-10-19 Thread johnb

having played with Amazon EC2 infrastructures myself I can understand
the architectural problem. EBS volumes can only be attached to one
Instance at a time so you have to run an EC2 Instance to expose the
EBS volume as a NFS share to your application instances - immediately
a single point of failure is introduced.

So assuming the point of failure is acceptable - a dyno would then
have to be able to link to an apps shared area on the NFS - not
knowing much about the Heroku archicture mind you it doesn't sound all
that complicated in theory.

Currently with our BrowserCMS installs on Rackspace, uploads are
stored in shared/uploads which we present as /tmp/uploads via a
symlink so we can replace the code/templates without touching the
uploaded assets.

talking in theory here, I'm sure the guys at Heroku would have
implemented this if it was possibleguys - any thoughts?

On Oct 15, 1:50 pm, "robeast...@googlemail.com"
 wrote:
> +1 on details of these plugins.
>
> I'm having trouble with newsdesk's translate plugin from github as it
> needs to write to the locales directory. It's a gui to rails i18n
> locale files. I just spent a day setting up another server and
> troubleshooting it at Railsplayground so that my translation team can
> use this gui. I had loads of issues with gem install requests,
> suspected misconfiguration at the server end, tech support overwriting
> my environments/production.rb file without telling me. Got it working
> in the end but it was a real headache, if I'd know I would have just
> sent them the yaml files to the translation team.
>
> I hated having to go back to Railplayground and battle with Cpanel
> interface and so a plugin which rerouted file writes to my S3 account
> would be great as it means I could stay with Heroku all the time (me
> => happybunny). I know I'll run into this sort of thing again with
> some other plugin or app I want to run on Heroku. How are assets
> handled when using a CMS such as Radiant for instance? I know their
> was a tutorial, publicised on a Heroku blog, on how to get it running
> on Heroku and so assuming there must have been a solution there for
> uploaded assets. I figure that there are lot's of ways to write to the
> local file system and so such a plugin would need to think of all
> cases that it needs to intercept. No easy task me thinks.
>
> A plugin would be a short term fix, but the best thing would be for
> Heroku to introduce a feature to make this transparent. It could use
> some sort of magic directory that appears to the Heroku rails app as
> being a normal local directory. If the user writes to this however
> Heroku would actually intercept the writes and feed them to a named
> bucket on the users S3 account. Would this approach bypass EC2 scaling
> issues assocaited with Heroku's architecture. I guess this would mean
> that we would need some way of providing Heroku with security details
> for an S3 account along with the target bucket for each app via the
> heroku gem. This should allow users to be billed for storage and
> bandwidth directly from S3 as Heroku is effectively only working as an
> S3 uploader. Obviously the contents of this 'magic' directory would
> not count towards Heroku's storage quota. A feature such as this
> would mean I can stop messing about with S3 up-loaders like S3Hub or
> S3fox for managing my static assets. The side benefit being that these
> app assets can become part of my git workflow once again whilst
> benefitting form being served from my S3 account. Obviously there
> would still be a requirement to change routes for some apps that
> assume they can write anywhere in the app, but this code is usually
> relatively easy to find and change comapred to trying to bootstrap the
> write entirely to s3 using the AWS s3gem or suchlike.
>
> A final thought, and again only as a short term solution to my
> specific problem with the translate plugin, how long are files in the
> tmp and log directories kept ther, are these routinely cleared out by
> Heroku's houskeeping routines? If so how often. If I knew that I could
> temporarily reroute the translate plugin to the tmp directory and be
> confident the files would stay there for a week or so then I could do
> that as a short term hack. If not the tmp directory what about the
> logs directory? Thanks.
>
> Rob
>
> On Oct 14, 11:00 am, Neil  wrote:
>
> > Do you have links to any of these plugins at all or is it still to
> > early?
>
> > N
>
> > On Oct 6, 10:32 pm, Oren Teich  wrote:
>
> > > Hi Neil,
> > > There aren't any plans for shared storage right now.  I wish I could  
> > > say otherwise.  The big challenge is that we're able to achieve our  
> > > scaling and overall cool features by imposing certain constraints.  A  
> > > read-only file system is one of those.  If we had a shared filesystem,  
> > > we wouldn't be able to offer the scalability or performance that makes  
> > > our platform so unique.  There are some interesting plugins that some 

Re: search - what options do I have? Sphinx? Solr ?

2009-09-30 Thread johnb

solr

http://docs.heroku.com/full-text-indexing

On Sep 30, 7:05 pm, eydaimon  wrote:
> What options does heroku provide for doing search?

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