mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 10:01:47 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
30
tldr/yesod
Normal file
30
tldr/yesod
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# yesod
|
||||
|
||||
> Helper tool for Yesod, a Haskell-based web framework.
|
||||
> All Yesod commands are invoked through the `stack` project manager.
|
||||
> More information: <https://github.com/yesodweb/yesod>.
|
||||
|
||||
- Create a new scaffolded site, with SQLite as backend, in the `my-project` directory:
|
||||
|
||||
`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`
|
||||
Reference in New Issue
Block a user