toto
toto copied to clipboard
Local host works fine, @heroku, all articles (and their links) are todays date
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. Hoping someone has seen this problem...guessing I must be doing something wrong as I don't see reports of similar problems.
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/
This is the date setting in my config.ru (stock): set :date, lambda {|now| now.strftime("%B #{now.day.ordinal} %Y") }
I'm getting the same problem. It wasn't this way until I published a new article. This is really bad as I'm getting a ton of traffic to the site. How do I fix this?!
I have not had the time to figure out... short of start digging through the source I have not been able to find a solution. Do let me know if you find the answer. Not that it is much solace but you have probably noticed that if you change the date in your link you can still get to your article....
I was having the same issue here, and found a simple solution.
First of all, it accours due default error-safe routine for date parsing errors from .txt file: https://github.com/cloudhead/toto/blob/master/lib/toto.rb#L242
Some parsing problems could appear when you not use quotes for date or title fields.
Instead of using: title: My post: colons can crash them! date: 2011-05-02
Just quote your params: title: 'My post: colons can crash them!' date: '2011-05-02'
You are using wrong format of the date in posts, it should be, e.g. 02/05/2011
Please if somebody still have this problem - comment here. Otherwise, I don't see anything that will stop cloudhead from closing this issue, as original author of issue is not using toto anymore, and I believe the error was because of the date format.
Oh, he stopped using Toto? Aww. Why? What's better?
He switched to Tumblr. I guess there's no such thing as "objective better". Everybody choose for himself. I was using WordPress for more than 5 years. I can change anything there, but, everytime I was really upset when I wanted to post something - open browser, go to the wp-admin, log-in, figure out that for last week there were three security updates, and 8 updates for plugins, update, forgot the initial reason why I have opened it up, remember, press new post, hate use semi-html... And even more upset when I wanted to take a look on one of old posts (I use blog as a notebook with public access)... So for me toto is the best - it has even structure of directories and files that seems best for me ;))
Yeah... I went there as did not have the time to figure out what was going on and had other more pressing commitments and wanted to keep my blog alive. Not that I would not come back when I have the spare time... I thought... and think Toto is very cool and love the simplicity, so please keep up the work!
Yeah, the only thing I would think about using these days is Tumblr... maybe have to switch to that but then I'd have to deal with the pain of migrating my posts all over again and dunno if I want to do that. Lizzame!
On Wed, Aug 10, 2011 at 5:29 PM, structuralartistry < [email protected]>wrote:
Yeah... I went there as did not have the time to figure out what was going on and had other more pressing commitments and wanted to keep my blog alive. Not that I would not come back when I have the spare time... I thought... and think Toto is very cool and love the simplicity, so please keep up the work!
Reply to this email directly or view it on GitHub: https://github.com/cloudhead/toto/issues/62#issuecomment-1778096