Compare commits
No commits in common. "main" and "v1.3.3" have entirely different histories.
5 changed files with 16 additions and 24 deletions
|
|
@ -1,2 +0,0 @@
|
||||||
# replace with correct IP, and rename the file to .env
|
|
||||||
HOST=123.456.789.00
|
|
||||||
19
README.md
19
README.md
|
|
@ -10,7 +10,7 @@ You need [node](https://nodejs.org) and [pnpm](https://pnpm.io).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# clone project
|
# clone project
|
||||||
$ git clone https://git.ayo.run/ayo/ayco.io-astro
|
$ git clone git@git.sr.ht:~ayoayco/ayco.io-astro
|
||||||
|
|
||||||
# go into project dir
|
# go into project dir
|
||||||
$ cd ./ayco.io-astro
|
$ cd ./ayco.io-astro
|
||||||
|
|
@ -26,25 +26,16 @@ $ pnpm i
|
||||||
| ------------------- | ---------------------------------------------- |
|
| ------------------- | ---------------------------------------------- |
|
||||||
| `pnpm run dev` | start dev server |
|
| `pnpm run dev` | start dev server |
|
||||||
| `pnpm run build` | generate static files to `dist` directory |
|
| `pnpm run build` | generate static files to `dist` directory |
|
||||||
| `pnpm run deploy` | upload to my server |
|
| `pnpm run deploy` | upload to my server |
|
||||||
| `pnpm run prep:now` | back up and clear current `now page` constants |
|
| `pnpm run prep:now` | back up and clear current `now page` constants |
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
For the script `npm run deploy`, you need to add an environmental variable named HOST containing the IP address of the host server. This will scp the build files into the server.
|
For the script `npm run deploy`, you need to add an environmental variable named HOST containing the IP address of the host server. This will scp the build files into the server.
|
||||||
|
|
||||||
You can do this by adding a `.env` file with the following content (replace the IP):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# .env
|
|
||||||
HOST=123.456.789.00
|
|
||||||
```
|
|
||||||
|
|
||||||
There is a service worker (`src/sw.mjs`) that caches assets on client browsers. For cache invalidation, the version property in package.json is used. Increment the version via `npm version patch` (or `minor`, `major`) if there is a significant change in the website's assets.
|
|
||||||
|
|
||||||
If you want to run build before deploying, do `npm run build:deploy`
|
If you want to run build before deploying, do `npm run build:deploy`
|
||||||
|
|
||||||
---
|
-----
|
||||||
|
|
||||||
_Just keep building._<br />
|
*Just keep building.*<br />
|
||||||
_~Ayo_
|
*~Ayo*
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@ayco/personal-website",
|
"name": "@ayco/personal-website",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "1.3.11",
|
"version": "1.3.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
|
|
@ -12,8 +12,7 @@
|
||||||
"lint": "eslint . --config eslint.config.mjs --cache",
|
"lint": "eslint . --config eslint.config.mjs --cache",
|
||||||
"format": "prettier . --write",
|
"format": "prettier . --write",
|
||||||
"check": "npm run format && npm run lint",
|
"check": "npm run format && npm run lint",
|
||||||
"predeploy": "npm version patch && npm run build",
|
"deploy": "eval $(grep '^HOST' .env) && scp -r dist ayo@$HOST:~/ayco.io-flask",
|
||||||
"deploy": "npm run predeploy && eval $(grep '^HOST' .env) && scp -r dist ayo@$HOST:~/ayco.io-flask",
|
|
||||||
"build:preview": "npm run build && astro preview",
|
"build:preview": "npm run build && astro preview",
|
||||||
"build:deploy": "npm run build && npm run deploy",
|
"build:deploy": "npm run build && npm run deploy",
|
||||||
"copy:dist": "npm run build && cp -R dist ../ayco.io-flask/",
|
"copy:dist": "npm run build && cp -R dist ../ayco.io-flask/",
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ jay.bsky.team@bsky.brid.gy, true, false,
|
||||||
b0rk.jvns.ca@bsky.brid.gy, true, false,
|
b0rk.jvns.ca@bsky.brid.gy, true, false,
|
||||||
seldo.com@bsky.brid.gy, true, false,
|
seldo.com@bsky.brid.gy, true, false,
|
||||||
nerdy.dev@bsky.brid.gy, true, false,
|
nerdy.dev@bsky.brid.gy, true, false,
|
||||||
samuel.fm@bsky.brid.gy, true, false,
|
wongmjane.com@bsky.brid.gy, true, false,
|
||||||
|
samuel.bsky.team@bsky.brid.gy, true, false,
|
||||||
laurenshof.online@bsky.brid.gy, true, false,
|
laurenshof.online@bsky.brid.gy, true, false,
|
||||||
bell.bz@bsky.brid.gy, true, false,
|
bell.bz@bsky.brid.gy, true, false,
|
||||||
matrix.org@bsky.brid.gy, true, false,
|
matrix.org@bsky.brid.gy, true, false,
|
||||||
|
|
@ -28,9 +29,10 @@ jacobhands.com@bsky.brid.gy, true, false,
|
||||||
malstrom.me@bsky.brid.gy, true, false,
|
malstrom.me@bsky.brid.gy, true, false,
|
||||||
shuuji3.xyz@bsky.brid.gy, true, false,
|
shuuji3.xyz@bsky.brid.gy, true, false,
|
||||||
intenttoship.dev@bsky.brid.gy, true, false,
|
intenttoship.dev@bsky.brid.gy, true, false,
|
||||||
|
haoqun.dev@bsky.brid.gy, true, false,
|
||||||
element.io@bsky.brid.gy, true, false,
|
element.io@bsky.brid.gy, true, false,
|
||||||
e18e.dev@bsky.brid.gy, true, false,
|
e18e.dev@bsky.brid.gy, true, false,
|
||||||
danabra.mov@bsky.brid.gy, true, false,
|
danabra.mov@bsky.brid.gy, true, false,
|
||||||
heydonworks.com@bsky.brid.gy, true, false,
|
heydonworks.bsky.social@bsky.brid.gy, true, false,
|
||||||
danielroe.dev@bsky.brid.gy, true, false,
|
danielroe.dev@bsky.brid.gy, true, false,
|
||||||
patak.dev@bsky.brid.gy, true, false,
|
patak.dev@bsky.brid.gy, true, false,
|
||||||
|
|
|
||||||
|
|
|
@ -47,7 +47,9 @@ const year = new Date().getFullYear()
|
||||||
<a href="/">Ayo Ayco</a>. This website <a
|
<a href="/">Ayo Ayco</a>. This website <a
|
||||||
href="https://ayos.blog/stopped-tracking-on-my-sites"
|
href="https://ayos.blog/stopped-tracking-on-my-sites"
|
||||||
>does not track users</a
|
>does not track users</a
|
||||||
>. See the <a href="https://git.ayo.run/ayo/ayco.io-astro">source code.</a>
|
>. See the <a href="https://git.sr.ht/~ayoayco/ayco.io-astro"
|
||||||
|
>source code.</a
|
||||||
|
>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<WebRings />
|
<WebRings />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue