Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about development #13

Closed
dallas opened this issue Feb 6, 2010 · 3 comments
Closed

question about development #13

dallas opened this issue Feb 6, 2010 · 3 comments

Comments

@dallas
Copy link

dallas commented Feb 6, 2010

First of all, are there specific "environments" that the app can be run in (e.g. dev, test, pro)? If there are, those should be better documented. Also, is there a way to turn off caching when running on a local system? The reason I ask is that I can only assume that caching is what is causing my bizarre issue: both of my test posts have the same date, even though the first one is the default post that comes with this app (dated 1900-05-17). When I load up the app in my browser, they both say February 5th 2010 and thus the first one (the 1900-05-17 one) has a broken link.

@cloudhead
Copy link
Owner

Environments is the next thing on my list, it's not there yet. I'm planning on using ENV['RACK_ENV'] when I implement this.

Concerning your problem: make sure the file-names and the dates match up, that might be the source of the problem, if it's not the caching.

@cloudhead
Copy link
Owner

Environments are implemented, can be accessed with Toto.env, and uses ENV['RACK_ENV'] which defaults to prod on heroku, and development locally.

@dallas
Copy link
Author

dallas commented Feb 8, 2010

excellent, thank you!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants