-
Notifications
You must be signed in to change notification settings - Fork 39
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
Ideas for scaffolding #92
Comments
rather than moving source files into |
|
supporting cron is good. The concept of a What I have done before is provide a defaultLayout for the app but modify the layout for the error cases. Either way we should make this easier |
see this issue for scaffolding improvement: yesodweb/yesod#997 |
Thanks for the feedback. I totally agree that most of the things I changed are not appropriate for most users. I could put up a PR for the |
Also, I wanted to clarify what I find confusing about the compile-time settings. There is a
When I deploy an application to prod, I want to change the approot. Cool. I could set the environment variable or just do it manually in the settings file:
On production, I don't want template reloading. So, it would seem natural to do this:
But, this doesn't work because the runtime value of this setting is never actually used. The main issue that I have is not that compile time settings are pulled from a yaml file. It's that they are alongside runtime settings in the same file. I think that a separate file with the compile time settings would make more sense. |
Seems better documentation of settings is needed? |
I have a branch here: https://github.com/yesodweb/yesod-scaffold/tree/postgres-no-compile-time-settings-no-devel
This is basically a fork of the scaffolding that has emerged as a result of me pulling in the common code that I needed to add to all of the apps I've built at work. I don't expect that this should replace the existing scaffolding for everyone (some of the ideas are probably too specific to my workflow), but I think that it's probably a good source of ideas. The README is pretty explanatory of the customizations I've made. If anyone finds them interesting or has any comments or questions, I'd like to hear feedback. In particular, I feel like the good changes are:
settings.yaml
at compile timeTask
-related things (type Task x = ReaderT App IO x
)src
The text was updated successfully, but these errors were encountered: