MSeeeeN を生成するためのサイトジェネレーターです。
コンテンツは https://github.com/mseninc/blog で管理しています。
Use npm-check-updates
to update package.json
.
$ npx npm-check-updates -u
$ rm -rf .cache/ public/ node_modules/
$ npm i
$ NODE_OPTIONS=--max-old-space-size=8192 CONTENT_PATH=content npx gatsby build
$ CONTENT_PATH=content npx gatsby serve -p 8000
ビルド中に Killed と表示される場合は、メモリが不足している可能性が高いので、 WSL の場合は swap を増やすなどしてください。
[wsl2]
memory=12GB
swap=6GB
$ sudo docker build . -t <TAG_NAME>
-
sudo
required on WSL to avoid errorfailed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 255, out:
-
The image is automatically published to
ghcr.io
by a GitHub action. Refer to blog-gatsby/docker-publish.yml.
$ docker run -d --name <CONTAINER_NAME> -v $PWD/content:/content -p 8000:8000 <TAG_NAME>