2021-07-12 20:51:58 +00:00
|
|
|
# lavender.software
|
|
|
|
|
|
|
|
Static site generated using [siru](https://github.com/videogame-hacker/siru) and hosted at [lavender.software](https://lavender.software/).
|
|
|
|
|
2022-03-05 14:38:32 +00:00
|
|
|
## Setting Up
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ git clone 'git@lavender.software:lavender/lavender.software.git'
|
|
|
|
$ cd lavender.software/
|
|
|
|
lavender.software/ $ mkdir dist # or follow instructions in 'Deploying'
|
|
|
|
lavender.software/ $ cargo run
|
|
|
|
...
|
|
|
|
lavender.software/ $ # Built files are in dist/
|
|
|
|
```
|
|
|
|
|
|
|
|
You may want to `cd dist && python -m http.server` to get a local HTTP server.
|
|
|
|
|
2021-07-12 20:51:58 +00:00
|
|
|
## Deploying
|
|
|
|
|
2022-03-05 14:38:32 +00:00
|
|
|
**Note:** You don't need to do this unless you're th eone deploying the site to the production environment.
|
|
|
|
|
2021-07-12 20:51:58 +00:00
|
|
|
```shell
|
|
|
|
$ # To set up, ensure that the 'dist' folder reflects the VPS
|
|
|
|
$ git clone 'root@lavender.software:/srv/http/lavender.software' dist
|
|
|
|
$
|
|
|
|
$ cargo run # Build the site
|
|
|
|
$ cd dist/
|
|
|
|
dist/ $ git add -A . && git commit -m "Deploying: $(date)"
|
|
|
|
dist/ $ git pull --rebase
|
|
|
|
dist/ $ git push
|
|
|
|
dist/ $ # Your changes should now be live at lavender.software
|
|
|
|
```
|