mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
Update readme
This commit is contained in:
parent
ae5057f223
commit
87d4d76fe0
1 changed files with 14 additions and 2 deletions
16
Readme.md
16
Readme.md
|
|
@ -54,7 +54,8 @@ Other targets:
|
||||||
rbenv exec bundle exec bake mudge
|
rbenv exec bundle exec bake mudge
|
||||||
rbenv exec bundle exec bake beta
|
rbenv exec bundle exec bake beta
|
||||||
rbenv exec bundle exec bake release
|
rbenv exec bundle exec bake release
|
||||||
rbenv exec bundle exec bake watch
|
rbenv exec bundle exec bake watch target=debug
|
||||||
|
rbenv exec bundle exec bake clean
|
||||||
rbenv exec bundle exec bake publish_beta
|
rbenv exec bundle exec bake publish_beta
|
||||||
rbenv exec bundle exec bake publish
|
rbenv exec bundle exec bake publish
|
||||||
```
|
```
|
||||||
|
|
@ -63,9 +64,17 @@ rbenv exec bundle exec bake publish
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
rbenv exec bundle exec bake new_draft "Post title"
|
rbenv exec bundle exec bake new_draft "Post title"
|
||||||
|
rbenv exec bundle exec bake drafts
|
||||||
rbenv exec bundle exec bake publish_draft public/drafts/post-title.md
|
rbenv exec bundle exec bake publish_draft public/drafts/post-title.md
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Published posts in `posts/YYYY/MM/*.md` require YAML front matter keys:
|
||||||
|
|
||||||
|
- `Title`
|
||||||
|
- `Author`
|
||||||
|
- `Date`
|
||||||
|
- `Timestamp`
|
||||||
|
|
||||||
## Tests And Lint
|
## Tests And Lint
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
@ -78,9 +87,12 @@ Or via bake:
|
||||||
```bash
|
```bash
|
||||||
rbenv exec bundle exec bake test
|
rbenv exec bundle exec bake test
|
||||||
rbenv exec bundle exec bake lint
|
rbenv exec bundle exec bake lint
|
||||||
|
rbenv exec bundle exec bake lint_fix
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- `bake watch` is Linux-only and requires `inotifywait`.
|
- `bake watch` is Linux-only and requires `inotifywait`.
|
||||||
- Deployment uses `rsync` to the configured `mudge` host paths in `bake.rb`.
|
- Deployment uses `rsync` to host `mudge` (configured in `bake.rb`):
|
||||||
|
- production: `/var/www/samhuri.net/public`
|
||||||
|
- beta: `/var/www/beta.samhuri.net/public`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue