feat: update policies, use new font, spell check (finally) (#44)

Reviewed-on: https://codeberg.org/nhcarrigan/docs/pulls/44
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
2024-12-16 02:21:38 +00:00
committed by Naomi the Technomancer
parent de40813634
commit c34257ac0d
23 changed files with 1076 additions and 1856 deletions

View File

@ -6,7 +6,7 @@ This document outlines how we set up our remote servers for running projects.
## 1. Provision a Server
We use DigitalOcean as our provider. Regardless of your choice, provision a new VPS using the **latest Ubunutu LTS version**. Add your `ssh` key AND Naomi's `ssh` key in the setup process.
We use DigitalOcean as our provider. Regardless of your choice, provision a new VPS using the **latest Ubuntu LTS version**. Add your `ssh` key AND Naomi's `ssh` key in the setup process.
## 2. Set Up User
@ -289,11 +289,33 @@ And to unban them:
sudo fail2ban-client set nginx-auth unbanip <ip>
```
## 5. Running a Project
## 5. Uploading a Project
To upload a project, you should **not** use `git` to clone the project to the machine. Instead, start by cloning the project to your local environment and navigating to the directory:
```bash
git clone <url>
cd /path/to/project
```
:::tip
If you already have the project cloned, remove any ignored files such as `node_modules`, `prod`, or `coverage`.
```bash
rm -rf node_modules prod coverage <other directories and files>
```
Then sync the project up to the machine, ignoring the `.git` directory.
```bash
GLOBIGNORE='.git' scp -r ./* <server name>:/home/nhcarrigan/<project directory>
```
## 6. Running a Project
Now you are ready to start running the project.
### 5.1. Node.js
### 6.1. Node.js
Most of our projects will run on Node. For a new machine, you'll need to set that up.
@ -323,7 +345,7 @@ Finally, install `pnpm` as the package manager.
npm i -g pnpm
```
### 5.2. PM2
### 6.2. PM2
All of our processes run with PM2 to allow for monitoring and auto-restarts. You'll need to install it.