Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janhancic/hancic.info
Frontend code for my blog http://hancic.info
https://github.com/janhancic/hancic.info
Last synced: 22 days ago
JSON representation
Frontend code for my blog http://hancic.info
- Host: GitHub
- URL: https://github.com/janhancic/hancic.info
- Owner: janhancic
- Created: 2012-10-15T15:07:37.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-01-14T19:13:30.000Z (10 months ago)
- Last Synced: 2024-04-14T19:15:47.789Z (7 months ago)
- Language: PHP
- Size: 18 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hancic.info
Source code for my personal website https://hancic.info
## Development
This is a static website built using [Hugo](https://gohugo.io/)
All dependencies are obtained with the `./get_deps.sh` script which will download all the
necessary binaries into the `bin` folder inside the repo folder. The website is meant to
be built using these binaries as they are pinned to a specific version.### Terraform
The website is deployed onto CloudFlare Pages which is managed with Terraform defined
in the `tf` folder. All changes are applied manually (i.e. there is no CI/CD)._Note:_ If setting this up on a new CloudFlare account, you have to connect CloudFlare to
your GitHub account and give it access to the repo where the website is stored. See
[this guide](https://developers.cloudflare.com/pages/get-started/guide/#connect-your-git-provider-to-pages).The following are the commands typically used to make changes to the infrastructure of
this website.```bash
./get_deps.sh
cd tf/
# Follow https://developers.cloudflare.com/fundamentals/api/get-started/create-token/
# to generate a token that can be used.
export CLOUDFLARE_API_TOKEN=
# Only run this the first time / on a new machine.
../bin/terraform init
../bin/terraform plan
../bin/terraform apply
```You either need to create a `terraform.tfvars`` or provide the required variables
to the terraform commands directly with `-var var_name=foo` e.g. `../bin/terraform apply -var cf_account_id=XZY`#### terraform.tfstate
The state file is not checked-in into the repo. While nobody else will work on this repo and
run terraform commands against my personal CloudFlare account, the file could contain some
sensitive information.At the moment it is simply stored on my computer (with a decent-ish manual backup).