Yeah, it's best to turn off caching while doing development. The easiest way
to do this is

# app/controllers/application_controller.rb
class ApplicationController # blah blah blah
    # blah blah blah
    after_filter :set_no_cache
    private
    def set_no_cache
        headers['Cache-Control'] = 'no-cache'
    end
end

On Fri, Jan 8, 2010 at 10:51 AM, Carl Anderson <[email protected]> wrote:

> You may also need to try:
>
> heroku restart
>
> I had the same problem a while back and once I restarted the server it
> fixed the problem. I'm wondering if the index page was cache in Varnish
> perhaps?
>
> Carl
>
>
> On Fri, Jan 8, 2010 at 10:46 AM, David Dollar <[email protected]> wrote:
>
>> Try the following
>>
>> git rm public/index.html
>> git commit -m "remove default index page"
>> git push heroku
>>
>> - David
>>
>> On Fri, Jan 8, 2010 at 9:15 AM, JGrubb <[email protected]>
>> wrote:
>> > I'm a complete and utter nooby, though not so new that I haven't run a
>> > search or five on this list to find if anyone else is having this
>> > problem.
>> >
>> > I'm getting my feet wet with Heroku, Rails, and Git all at the same
>> > time.  I've got a couple of little projects going, each of which have
>> > had the standard index.html deleted and the map.root =>
>> > 'where_I_want_it_to_go', but for some reason, upon visiting the root
>> > URL of my apps in Heroku, the Welcome to Rails page shows up.
>> > Needless to say it works fine locally.
>> >
>> > The weirder thing is that my very first project was a blog that I
>> > pushed up about 2 weeks ago.  The landing page has since disappeared
>> > on it's own without any intervention on my part (that I can
>> > remember).
>> >
>> > What am I doing wrong?
>> >
>> > thanks, all...
>> >
>> > John
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Heroku" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> [email protected]<heroku%[email protected]>
>> .
>> > 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 [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<heroku%[email protected]>
>> .
>> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<heroku%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>
>


-- 
   ~devyn
--
You received this message because you are subscribed to the Google Groups "Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/heroku?hl=en.

Reply via email to