2017-03-23 04:07:05 +00:00
|
|
|
# yesod
|
|
|
|
|
2017-05-01 20:11:23 +01:00
|
|
|
> Helper tool for Yesod, a Haskell-based web framework.
|
|
|
|
> All Yesod commands are invoked through the `stack` project manager.
|
2019-05-14 17:09:07 +01:00
|
|
|
> Homepage: <https://github.com/yesodweb/yesod>.
|
2017-03-23 04:07:05 +00:00
|
|
|
|
2017-05-01 20:11:23 +01:00
|
|
|
- Create a new scaffolded site, with sqlite as backend, in the "my-project" directory:
|
2017-03-23 04:07:05 +00:00
|
|
|
|
|
|
|
`stack new {{my-project}} {{yesod-sqlite}}`
|
|
|
|
|
|
|
|
- Install the Yesod CLI tool within a Yesod scaffolded site:
|
|
|
|
|
|
|
|
`stack build yesod-bin cabal-install --install-ghc`
|
|
|
|
|
|
|
|
- Start development server:
|
|
|
|
|
|
|
|
`stack exec -- yesod devel`
|
|
|
|
|
|
|
|
- Touch files with altered Template Haskell dependencies:
|
|
|
|
|
|
|
|
`stack exec -- yesod touch`
|
|
|
|
|
|
|
|
- Deploy application using Keter (Yesod's deployment manager):
|
|
|
|
|
|
|
|
`stack exec -- yesod keter`
|