Re: Cloudfront

2012-04-04 Thread Arun Thampi
We use Cloudfront's Custom Origin Server to point to our Rails app instead
of an S3 bucket. This removes the need to sync assets to an S3 bucket. We
used Open Government's tutorial [1] as a base and built upon it to improve
it slightly [2].

[1]
http://blog.opengovernment.org/2011/02/10/cloudfront-s3-rails-and-jammit-on-apache/

[2]
http://dev.anideo.com/2012/01/03/how-we-setup-amazon-cloudfront-to-play-nice-with-rails.html

On Thu, Apr 5, 2012 at 10:37 AM, Peter Keen peter.k...@bugsplat.infowrote:

 I use asset_sync[1] on the one project where I push stuff to
 S3/cloudfront. It works great and is basically automatic.

 [1]: https://github.com/rumblelabs/asset_sync

 On Wed, Apr 4, 2012 at 7:21 PM, railsnerd rails.n...@gmail.com wrote:
  Hi there
 
  My site has a lot of static pages, and I'm hoping I can use Cloudfront
  to host them and stop requests hitting Heroku.
 
  (Yes I know there are other possibilities like memcached and varnish)
 
  Does anyone know of a good guide in setting this up?  It's not very
  clear to me.
 
  thanks
 
  --
  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.
 

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




-- 
It's better to be a pirate than join the Navy - Steve Jobs
http://mclov.in | @iamclovin

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



Re: RoR running on Localhost but not on Heroku

2011-10-01 Thread Arun Thampi
From your pastebin it looks like you haven't included the postgres adapter
as part of your Gemfile. You need to add this *gem 'pg'* to your Gemfile.
You might be using sqlite locally, which is why its working locally and not
in production. Heroku uses Postgres:
http://devcenter.heroku.com/articles/database

Cheers,
Arun

On Sat, Oct 1, 2011 at 9:39 PM, Sushil Gupta desus...@gmail.com wrote:

 Yes I pushed my data using git push heroku master and my log files is
 here as http://pastebin.com/LsS9Dh8j. I don't know what might be wrong
 here.



 --
 You received this message because you are subscribed to the Google Groups
 Heroku group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/heroku/-/-Q3rLtG8ur0J.

 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.




-- 
It's better to be a pirate than join the Navy - Steve Jobs
http://mclov.in | @iamclovin

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



Re: No way to access any part of Heroku

2011-04-21 Thread Arun Thampi
Amazon AWS seems to be the root cause.

http://status.aws.amazon.com/?a

And the ensuing Hacker News thread is here: 
http://news.ycombinator.com/item?id=2469838

-- 
Arun Thampi
Sent with Sparrow
On Thursday, April 21, 2011 at 10:56 PM, Rohit Dewan wrote: 
 Hi Ben,
 
 Can you please provide some more color on the connectivity issues
 mentioned on status.heroku.com? I have rarely seen networking issues
 take this long to be resolved in a production environment.
 
 Thanks,
 Rohit
 
 On Apr 21, 5:08 am, Ben Scofield b...@heroku.com wrote:
  We're experiencing some problems right now -- keep an eye 
  onhttp://status.heroku.com/for updates.
  
  On Apr 21, 5:27 am, Daithi havingab...@gmail.com wrote:
  
  
  
  
  
  
  
   When i attempt to access my apps homepage (babel.heroku.com), i get
   the following message:
   Application Error
   An error occurred in the application and your page could not be
   served. Please try again in a few moments.
  
   When I attempt to access the log, I get:
   Dave-Dalys-MacBook:sinatra_gwap davedaly$ heroku logs
   !  Internal server error
  
   Then when I go to the Heroku site and try to log in, or access the
   support page, I get:
   502 Bad Gateway
   nginx/0.7.67
  
   My app has been working fine since I deployed last week, and now it's
   completely broken and I can't even get onto heroku,
   What can I do?
 
 -- 
 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.
 

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



Re: can't activate activesupport Error message after including gem in .gem file

2010-09-07 Thread Arun Thampi
Hi Ming Yeow - Think it's because feedzirra has a dependency on
activesupport 2.3.8 whereas Rails 2.3.5 is tied to activesupport 2.3.5 . Can
you see if you adding --ignore-dependencies to the feedzirra line in your
.gems file solves the problem?

Here's some docs for a similar problem: http://docs.heroku.com/rails236

Cheers,
Arun

On Sun, Sep 5, 2010 at 6:36 AM, Ming Yeow Ng mingy...@gmail.com wrote:

 After including the gem in my .gem file, the application is unable to
 run.

 It runs perfectly on my localhost - so i wonder why the conflict is
 happening?

 There appears to be some problems with the rails runtime - would love
 to get some help here!

 /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems.rb:230:in `activate':
 can't activate activesupport (= 2.3.8, runtime) for
 [feedzirra-0.0.24], already activated activesupport-2.3.5 for
 [rails-2.3.5] (Gem::LoadError

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




-- 
It's better to be a pirate than join the Navy - Steve Jobs
http://mclov.in | @iamclovin

-- 
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: Subdomain without a custom domain?

2010-05-25 Thread Arun Thampi
Hi Michael - Have you set the tld size for subdomain-fu to 1 in production?
If you don't have your custom domain name, then the tld size needs to be 2
(to account for heroku.com) I think.

HTH.
Cheers,
Arun

On Mon, May 24, 2010 at 2:42 AM, Michael magic6...@gmail.com wrote:

 Has anyone setup a site that needs a sub-domain without using a custom
 domain along with it? I have a rails site using subdomain_fu but it
 returns something.quiet-mountain-52 as the subdomain instead of just
 something since quiet-mountain-52 is already a sub of heroku.

 Thanks for any help.

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




-- 
It's better to be a pirate than join the Navy - Steve Jobs
http://mclov.in | @iamclovin

-- 
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: Running RSpec

2010-03-19 Thread Arun Thampi
You could also run a CI server on another dyno which runs your entire test
suite.

Something like CIJoe or Integrity:

http://github.com/defunkt/cijoe
http://integrityapp.com/

This might also be of help: http://github.com/sr/integrity-heroku

Cheers,
Arun

On Fri, Mar 19, 2010 at 9:51 PM, Ben Lovell benjamin.lov...@gmail.comwrote:


 On 19 March 2010 13:29, Matthew A. Brown mat.a.br...@gmail.com wrote:

 If you're concerned about regressions specific to the Heroku
 environment, your best bet might be to write a test suite that makes
 requests directly to your Heroku-hosted site (presumably you'd want to
 do this in a staging environment). You could do it at the Selenium
 layer or just by making HTTP requests from Ruby and making assertions
 on the responses.


 Good idea, I've found cucumber + mechanize to be excellent for that exact
 purpose.

 Cheers,
 Ben



 On Fri, Mar 19, 2010 at 09:26, Betelgeuse golff...@gmail.com wrote:
  Heroku is not bug free so it would be useful to be able to run against
  the exact environment.
  I recently found an issue with Bamboo 1.8.7 not having Kernel#callcc
  for example.
 
  On Mar 19, 2:02 pm, Matthew A. Brown mat.a.br...@gmail.com wrote:
  I'm guessing Heroku doesn't intend for you to run your specs on their
  dynos. When you install your app, my impression is that they
  install/modify several config files in your app to make it play nice
  with their environment, all of which are configured for the production
  environment.
 
  What's wrong with just running the specs locally?
 
 
  --
  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.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.comheroku%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.




-- 
It's better to be a pirate than join the Navy - Steve Jobs
http://mclov.in | @iamclovin

-- 
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: Rails gem missing by default in Bamboo REE 1.8.7 stack

2010-03-14 Thread Arun Thampi
Hi Oren - The reason I vendor Rails is so that i can follow edge and I'm not
tied to point-releases of the gem. Rails can still boot if it is vendor'ed
within the Rails app and the gem is not installed right (assuming all other
gem dependencies are met)?

Cheers,
Arun

On Sat, Mar 13, 2010 at 12:25 PM, Oren Teich o...@heroku.com wrote:

 there are no gems at all installed on bamboo.  The boot process requires
 the gem.

 Is there a reason you vendored the gem?  Why not just pin the version in
 your .gems file instead?

 Oren

 On Fri, Mar 12, 2010 at 6:42 PM, Arun Thampi arun.tha...@gmail.comwrote:

 Hi guys - I tried migrating my deployment stack from 1.8.6 to 1.8.7 and
 while it was installing Rubygems it raised an error stating that the rails
 gem is missing by default on the Bamboo platform. I don't need the rails gem
 since I vendor rails as part of my app, so is there a reason why it forces
 me to install the rails gem? The migration works fine after I add rails to
 my .gems file.

 Thanks for the great platform!

 Cheers,
 Arun

 --
 It's better to be a pirate than join the Navy - Steve Jobs
 http://mclov.in | @iamclovin

 --
 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.comheroku%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.




-- 
It's better to be a pirate than join the Navy - Steve Jobs
http://mclov.in | @iamclovin

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



Rails gem missing by default in Bamboo REE 1.8.7 stack

2010-03-12 Thread Arun Thampi
Hi guys - I tried migrating my deployment stack from 1.8.6 to 1.8.7 and
while it was installing Rubygems it raised an error stating that the rails
gem is missing by default on the Bamboo platform. I don't need the rails gem
since I vendor rails as part of my app, so is there a reason why it forces
me to install the rails gem? The migration works fine after I add rails to
my .gems file.

Thanks for the great platform!

Cheers,
Arun

-- 
It's better to be a pirate than join the Navy - Steve Jobs
http://mclov.in | @iamclovin

-- 
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: Better logging feedback

2010-02-24 Thread Arun Thampi
One thing I miss from having my own VPS is the ability for me to tail a
particular log (to quickly scan for unauthorized bots/spiders hitting an
app, etc.): a command like `heroku tail production.log` would be very sweet.

Cheers,
Arun

On Thu, Feb 25, 2010 at 11:59 AM, Oren Teich o...@heroku.com wrote:

 One of the top requests we've had is for better logging.  I'm looking for
 specific feedback on the problems you've run into, and who better logging
 would help you solve your problems.  While there are of course obvious
 cases, I want to make sure we get some real use cases straight from you guys
 .  Either here or off-list, I'd like to start a discussion on the problems
 you've run into with Heroku logs, limitations of solutions like exceptional
 or hoptoad, and what you'd like to see from Heroku when you think of logs.

 Thanks,
 Oren

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




-- 
It's better to be a pirate than join the Navy - Steve Jobs
http://mclov.in

-- 
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: Postgres Search

2010-02-09 Thread Arun Thampi
On Wed, Feb 10, 2010 at 9:41 AM, Oren Teich o...@heroku.com wrote:

 Because you don't have access to the DB directly, many of the built in
 search solutions aren't available on Heroku.  Using built in FTS or things
 like tsearch will break taps for example, and are not supported.  A few
 people have reports of getting them running, but it's not production
 quality.  If you want to use search on Heroku, websolr is really the way to
 go.


Don't know if this is production-ready, but Aaron Patterson released a gem
some time ago called 'Texticle' which lets you do full-text search using
Postgres on Heroku.

Full blog post (with instructions on setting up) is here:
http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku/

HTH.

Cheers,
Arun



 Oren


 On Mon, Feb 8, 2010 at 10:21 PM, Mike mikel...@gmail.com wrote:

 I noticed that the documentation recommends using Solr for search:
 http://docs.heroku.com/full-text-search

 However, Postgres has a built-in full text search capability that is
 not discussed at all.  I was wondering what the rationale is for the
 recommendation of Solr?

 Would the performance offered by a Solr approach be significantly
 greater or more scalable than using Postgres' built-in search?

 --
 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.comheroku%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.




-- 
It's better to be a pirate than join the Navy - Steve Jobs
http://mclov.in

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