-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,6 @@ This directory contains copies of system configuration files for various Linux / | |
- [Zsh](./zsh/) - zsh & bash shell | ||
- [Misc](./misc/) - misc. items | ||
|
||
**NOTE**: these are just reference files and are not the actual files on the server. | ||
|
||
```json | ||
{ | ||
"logs": "pm2 logs", | ||
"logs:recent": "pm2 logs --last 200", | ||
"logs:system": "sudo tail -f /var/log/syslog", | ||
"logs:asleepace": "pm2 logs asleepace.com", | ||
"logs:stockindx": "pm2 logs stockindx.com", | ||
"logs:nginx": "sudo tail -f /var/log/nginx/error.log", | ||
"logs:nginx:access": "sudo tail -f /var/log/nginx/access.log", | ||
"logs:ufw": "sudo journalctl -u ufw", | ||
"logs:postfix": "sudo tail -f /var/log/mail.log", | ||
"logs:errors": "sudo journalctl -u errors" | ||
} | ||
``` | ||
|
||
## Quick Start | ||
|
||
```bash | ||
|
@@ -153,6 +136,42 @@ scp [email protected]:/path/to/file.txt . | |
scp file.txt [email protected]:/path/to/file.txt | ||
``` | ||
|
||
## Package Scripts | ||
|
||
You can find common scripts for managing memory, disk, logs, etc. in our `package.json` file or in the [Misc](./misc/ABOUT.md) directory. | ||
|
||
```json | ||
"scripts": { | ||
"check": "bun --bun astro check", | ||
"dev": "bunx --bun astro dev", | ||
"start": "bunx --bun astro build --port 4321 && bunx --bun astro preview --port 4321", | ||
"build": "bunx --bun astro build", | ||
"build:debug": "DEBUG=astro:*,vite:* bunx --bun astro build --verbose", | ||
"preview": "bunx --bun astro preview", | ||
"build:tailwind": "npx tailwindcss -i ./src/styles/global.css -o ./src/styles/output.css", | ||
"watch:tailwind": "npx tailwindcss -i ./src/styles/global.css -o ./src/styles/output.css --watch", | ||
"deploy": "./scripts/deploy.sh", | ||
"astro": "bunx --bun astro", | ||
"util:upgrade": "bun upgrade", | ||
"util:check": "bunx --bun astro check", | ||
"run:server": "bun ./dist/server/entry.mjs", | ||
"logs": "pm2 logs", | ||
"logs:recent": "pm2 logs --last 200", | ||
"logs:system": "sudo tail -f /var/log/syslog", | ||
"logs:asleepace": "pm2 logs asleepace.com", | ||
"logs:stockindx": "pm2 logs stockindx.com", | ||
"logs:nginx": "sudo tail -f /var/log/nginx/error.log", | ||
"logs:nginx:access": "sudo tail -f /var/log/nginx/access.log", | ||
"logs:ufw": "sudo journalctl -u ufw", | ||
"logs:postfix": "sudo tail -f /var/log/mail.log", | ||
"logs:errors": "sudo journalctl -u errors", | ||
"memory": "df -h", | ||
"storage": "df -h", | ||
"disk": "ncdu /", | ||
"free": "free -h" | ||
} | ||
``` | ||
|
||
## Resources | ||
|
||
- [Installation](https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04) | ||
|
@@ -163,4 +182,4 @@ scp file.txt [email protected]:/path/to/file.txt | |
- [SSH Keys](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh) | ||
- [UFW Firewall](https://github.com/soladex/web/blob/main/docs/ufw.md) | ||
- [OpenSSL](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04) | ||
- [Parse](https://www.digitalocean.com/community/tutorials/how-to-run-parse-server-on-ubuntu-14-04) | ||
- [Parse](https://www.digitalocean.com/community/tutorials/how-to-run-parse-server-on-ubuntu-14-04) |