mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
Compare commits
4 Commits
5c6d01d82a
...
b2dba5235c
| Author | SHA1 | Date | |
|---|---|---|---|
| b2dba5235c | |||
| a2506df79d | |||
| 757912d196 | |||
| 280ab92645 |
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -23,5 +23,6 @@ jobs:
|
|||||||
- name: Push to dokku
|
- name: Push to dokku
|
||||||
uses: dokku/github-action@master
|
uses: dokku/github-action@master
|
||||||
with:
|
with:
|
||||||
|
git_push_flags: --force
|
||||||
git_remote_url: 'ssh://dokku@dokku.danbee.in:22/me'
|
git_remote_url: 'ssh://dokku@dokku.danbee.in:22/me'
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|||||||
6
archetypes/blog/index.md
Normal file
6
archetypes/blog/index.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
36
content/blog/2021-12-17-hosting-on-my-own-server/index.md
Normal file
36
content/blog/2021-12-17-hosting-on-my-own-server/index.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
title: "New hosting"
|
||||||
|
date: 2021-12-17T17:26:07-06:00
|
||||||
|
---
|
||||||
|
|
||||||
|
After years of hosting this blog on [Netlify](https://www.netlify.com/), I've
|
||||||
|
decided to finally move it to my [Dokku](https://dokku.com/) server hosted with
|
||||||
|
[Linode](https://www.linode.com/). Don't get me wrong Netlify is great, but
|
||||||
|
I realised I wanted a bit more control over my own hosting and Dokku gives me
|
||||||
|
that. I'd like to spin up a [Gemini](gemini://gemini.circumlunar.space/) site at
|
||||||
|
some point in the future and hosting on my own server should make that much
|
||||||
|
easier.
|
||||||
|
|
||||||
|
After playing around with various buildpacks to build the site on Dokku I ended
|
||||||
|
up settling on a custom `Dockerfile` config that works great and means I can
|
||||||
|
deploy in less than two minutes.
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
```dockerfile
|
||||||
|
# Dockerfile
|
||||||
|
FROM alpine:latest
|
||||||
|
RUN apk add --no-cache bash hugo
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . ./
|
||||||
|
```
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Procfile
|
||||||
|
release: hugo -v
|
||||||
|
web: hugo server --disableLiveReload --bind '0.0.0.0' -p ${PORT}
|
||||||
|
```
|
||||||
|
|
||||||
|
This was all that was required to get things up and running. The site generates
|
||||||
|
a lot of resized images on build so I needed to mount a volume to make sure that
|
||||||
|
was persistent between deploys.
|
||||||
Loading…
Reference in New Issue
Block a user