I have two new features to deploy to the beta site tonight: a poor man's CMS, which I am using for an "about us" page, and an ingredients index page. I have already smoke tested the about us page, so tonight it is time for the ingredients:
Ew. Not such a good start. That's not a 404—that is a
RestClient
resource not found. Specifically, the by-ingredients CouchDB view has not been uploaded to the development database. For that, I use a rake task wrapped around couch_docs:jaynestown% rake couchdb:load_design_docsWith that, I have the ingredient index page:
(in /home/cstrom/repos/eee-code)
jaynestown%
A little bit of less CSS:
#index-of-ingredients {And I have a decent looking ingredient index:
td {
vertical-align: top;
}
.ingredient {
font-weight: bold;
}
p {
padding-left:10px;
text-indent:-10px;
}
}
Last up, I add the new resources to the footer of the site:
#footerWith that, I redeploy:
%div
%a{:href => '/'}= "Home"
|
%a{:href => '/feedback'}= "Contact"
|
%a{:href => '/recipes/search?q='}= "Recipe List"
|
%a{:href => '/ingredients'}= "Ingredient Index"
|
%a{:href => '/about'}= "About This Site"
jaynestown% rake vlad:stop_appI do not have quite every feature from the legacy site complete, but I am done enough. Tomorrow, I will point DNS to the new site, officially putting the site on Sinatra / CouchDB.
jaynestown% rake vlad:update vlad:migrate vlad:start_app
No comments:
Post a Comment