Skip to content

Commit

Permalink
Update README development deployment section
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Feb 19, 2024
1 parent eafb308 commit 45765eb
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Non-exhaustive TODO-list:
- [X] Add automatic deployment on push to src/**
- [ ] write a workflow warning if the new content is still draft
- [X] add https
- [ ] add posts from previous website
- [X] add posts from previous website
- [ ] add a comments engine
- [X] fix baseUrl and "iScsc" sidebar brand name not redirecting
- [ ] print a `lastUpdate` or `updated` date param on posts
- [ ] show posts which `draft` param is `true` in dev mode (if possible)
- [X] show posts which `draft` param is `true` in dev mode (if possible)
- [ ] check when building (with builder target) that git submodule is updated

## Deployment
Expand Down Expand Up @@ -103,11 +103,14 @@ Sources I used:

### Development

> it requires `hugo` [installed](https://gohugo.io/installation/) locally!
```sh
cd src
hugo server
hugo server --buildDrafts --buildFuture
```
> it requires `hugo` installed locally!
> `--buildFuture` is also used in production, `--buildDrafts` only in development
> `--buildExpired` can be used too
This will build sources and start a basic development server that listens on http://localhost:1313.
The HUGO server automatically watches sources, so if you create a new post while it's running it will automatically rebuild the website and serve the new post.
This will build sources and start a basic development server that listens on http://localhost:1313.

The HUGO server **automatically watches sources**, so if you create a new post while it's running it will automatically rebuild the website and serve the new post.

0 comments on commit 45765eb

Please sign in to comment.