Local host works fine, @heroku, all articles (and their links) are todays date
- Dominant language
- Ruby
- Stars
- 1.5k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
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") }
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with config.ru and the date setting shown in the report, then trace how article headers are read and how dates are used to render article links. Compare the deployed Heroku behavior with the local Thin behavior using the supplied article header and URLs. Done means displayed dates and generated links match the article file date and no longer produce 404s.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100