Toto blog date issue - production only, localhost fine

14 views
Skip to first unread message

David Kahn

unread,
Dec 12, 2010, 3:51:06 PM12/12/10
to rubyonra...@googlegroups.com
I have this listed in the Toto Issues list on Git and know that it is affecting one other person and so far no ideas... just want to throw it out here if anyone else has had the issue or better yet has a fix:

I have a pretty stock instance of Toto. Locally I run it on thin and everything works. When I push it to heroku, the index loads but on every article, instead of showing the date in the article file, it shows today's date. This wrong date shows visually on the page and also in the links. So the links are all wrong and end in 404 errors. If I modify the link to the correct date of the article (in the article file), the article loads.

My blog: http://blog.structuralartistry.com/ This is the link that is on the first article. Follow it and you will have a 404:
http://blog.structuralartistry.com/2010/11/09/using-wkhtmltopdf-with-ruby-and-rails/

This is the header of the article file for this article:
title: Using wkhtmltopdf with Ruby and Rails
date: 2010-09-20
description: Pdf generation with wkhtmltopdf on Rails

If you fix the link to the right date you will get the article:
http://blog.structuralartistry.com/2010/09/20/using-wkhtmltopdf-with-ruby-and-rails/


Marnen Laibow-Koser

unread,
Dec 13, 2010, 10:26:52 AM12/13/10
to rubyonra...@googlegroups.com
David Kahn wrote in post #967963:

> I have this listed in the Toto Issues list on Git and know that it is
> affecting one other person and so far no ideas... just want to throw it
> out
> here if anyone else has had the issue or better yet has a fix:
>
> I have a pretty stock instance of Toto. Locally I run it on thin and
> everything works. When I push it to heroku, the index loads but on every
> article, instead of showing the date in the article file, it shows
> today's
> date.
[...]

I know nothing about Toto, but here's a wild guess. Are you using
something other than PostgreSQL for your development database? If so,
perhaps there's a SQL syntax issue in Toto...

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org

--
Posted via http://www.ruby-forum.com/.

David Kahn

unread,
Dec 13, 2010, 10:47:18 AM12/13/10
to rubyonra...@googlegroups.com
On Mon, Dec 13, 2010 at 9:26 AM, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
David Kahn wrote in post #967963:
> I have this listed in the Toto Issues list on Git and know that it is
> affecting one other person and so far no ideas... just want to throw it
> out
> here if anyone else has had the issue or better yet has a fix:
>
> I have a pretty stock instance of Toto. Locally I run it on thin and
> everything works. When I push it to heroku, the index loads but on every
> article, instead of showing the date in the article file, it shows
> today's
> date.
[...]

I know nothing about Toto, but here's a wild guess.  Are you using
something other than PostgreSQL for your development database?  If so,
perhaps there's a SQL syntax issue in Toto...


Thanks, actually Toto is database-less, just a rack app. It uses git as its datasource for blog posts which is pretty cool. Just that since starting to use this I spend more time figuring out what I have done wrong in Toto than writing anything to post ;)

 
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Ben Lavender

unread,
Jan 11, 2011, 4:14:03 PM1/11/11
to Ruby on Rails: Talk
A month later, I just fought this same issue, so here is the solution
for the foggy sands of time and Google. It's based on Heroku's
version of 1.8.7 being at a patchlevel in which the YAML parser parses
strings that look like dates into dates; toto wants strings. heroku
stack:migrate bamboo-mri-1.9.1 and away you go.

Ben

On Dec 13 2010, 9:47 am, David Kahn <d...@structuralartistry.com>
wrote:
> > Posted viahttp://www.ruby-forum.com/.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby on Rails: Talk" group.
> > To post to this group, send email to rubyonra...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-ta...@googlegroups.com<rubyonrails-talk%2Bunsubscrib e...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages