https://github.com/eckyputrady/eckyputrady.github.io
Haskell-based static site generator for my personal website
https://github.com/eckyputrady/eckyputrady.github.io
blog haskell site-generator static
Last synced: about 1 month ago
JSON representation
Haskell-based static site generator for my personal website
- Host: GitHub
- URL: https://github.com/eckyputrady/eckyputrady.github.io
- Owner: eckyputrady
- License: bsd-3-clause
- Created: 2015-01-01T06:16:51.000Z (about 11 years ago)
- Default Branch: source
- Last Pushed: 2022-08-22T07:25:40.000Z (over 3 years ago)
- Last Synced: 2023-03-23T12:17:37.911Z (almost 3 years ago)
- Topics: blog, haskell, site-generator, static
- Language: Haskell
- Homepage: http://eckyputrady.com
- Size: 1.99 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StaticGen
Static site generator in Haskell. This doesn't try to be smart. The configuration is the code.
## Development Mode
Start the `ghcid` daemon so that your change is published immediately.
```bash
ghcid -c "stack ghci --no-load" --test "Lib.someFunc" --reload "input" --restart "package.yaml"
```
Then setup an HTTP server in `output` folder. For example, by using python:
```bash
cd output
python -m SimpleHTTPServer
```
## Deploying
There's no need for build step since entering development mode already build a deployment-ready artifact.
Now, we deploy by pushing to master branch.
NOTE: Make sure you have committed everything in the source branch!
```bash
rm -rf /tmp/output
mv output /tmp/output
git checkout master
mv .git /tmp/.git
rm -rf *
mv /tmp/output/* .
rm -rf /tmp/output
mv /tmp/.git .git
git add -A
git commit -am "New version"
git push origin master
```