chore: update readme

This commit is contained in:
Ayo Ayco 2025-11-18 09:52:47 +01:00
parent c61becc74a
commit 38a822c1d5

View file

@ -10,7 +10,7 @@ You need [node](https://nodejs.org) and [pnpm](https://pnpm.io).
```bash ```bash
# clone project # clone project
$ git clone git@git.sr.ht:~ayoayco/ayco.io-astro $ git clone https://git.ayo.run/ayo/ayco.io-astro
# go into project dir # go into project dir
$ cd ./ayco.io-astro $ cd ./ayco.io-astro
@ -26,16 +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.
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_