forked from epesooj/webring
Move to Deno+Bunny.net, add a way to test webring locally.
This commit is contained in:
parent
9f66f0b37b
commit
8670aa3412
33 changed files with 599 additions and 3360 deletions
45
README.md
45
README.md
|
@ -1,19 +1,5 @@
|
|||
# Nixifying a new host
|
||||
|
||||
If you have a bunch of SSH keys in your SSH agent and get errors when trying to SSH into a fresh host, you may need to temporarily add the following config to your SSH config (obviously change the details for your case).
|
||||
The key is the line "IdentitiesOnly yes" along with an identity file.
|
||||
|
||||
```
|
||||
Host 188.245.194.78
|
||||
User root
|
||||
IdentityFile ~/.ssh/hetzner_personal_root.pub
|
||||
IdentitiesOnly yes
|
||||
```
|
||||
|
||||
# Adding yourself to the webring
|
||||
|
||||
(Please only follow this if you're an Epesooj insider. Random PRs will be closed for now.)
|
||||
|
||||
Add your information to `webring_data.json`.
|
||||
The schema is as follows:
|
||||
|
||||
|
@ -25,6 +11,11 @@ The schema is as follows:
|
|||
|
||||
Create a PR with your changes.
|
||||
|
||||
## Testing your entry
|
||||
|
||||
Run `deno task dev`, which should start a local web server.
|
||||
You can then navigate to it to inspect how your entry will look on the webring's main page, as well as make sure the url it points to works fine.
|
||||
|
||||
# Using the webring on your blog/page
|
||||
|
||||
Somewhere in your blog/page (footer recommended), add the following links.
|
||||
|
@ -37,3 +28,29 @@ Whenever your PR gets approved and merged, your id will be recognised and you'll
|
|||
- Previous entry: `https://akols.com/previous?id=<YOUR_ID_HERE>`
|
||||
- Next entry: `https://akols.com/next?id=<YOUR_ID_HERE>`
|
||||
- A link to the webring directory: `https://akols.com`
|
||||
|
||||
# Development setup
|
||||
|
||||
## Setting up VSCode (and flavours)
|
||||
|
||||
We're using [Deno](https://deno.com) in the webring functions, so if you want proper editor support, you'll need to install the [Deno extension](https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno).
|
||||
There's already a `.vscode` directory which should direct VSCode to enable the Deno extension for this project.
|
||||
|
||||
# Infrastructure
|
||||
|
||||
## Nixifying a new host
|
||||
|
||||
If you have a bunch of SSH keys in your SSH agent and get errors when trying to SSH into a fresh host, you may need to temporarily add the following config to your SSH config (obviously change the details for your case).
|
||||
The key is the line "IdentitiesOnly yes" along with an identity file.
|
||||
|
||||
```
|
||||
Host 188.245.194.78
|
||||
User root
|
||||
IdentityFile ~/.ssh/hetzner_personal_root.pub
|
||||
IdentitiesOnly yes
|
||||
```
|
||||
|
||||
## Deploying the webring
|
||||
|
||||
You should have a `.env` file with the id and deploy key for each script in the webring, as well as a key to deploy the index page to bunny.
|
||||
When you have this, run `deno task deploy`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue