Make Apache config optional and add more links to index

This commit is contained in:
Bad Manners 2024-08-16 16:21:22 -03:00
parent 403ae18b6e
commit e84900a652
16 changed files with 280 additions and 82 deletions

View file

@ -21,16 +21,25 @@ npm install
```bash
npm run dev # Start development server (quit with Ctrl-C)
npm run sync # Rebuild types from Astro config
npm run prettier # Prettier formatting
```
### Configuration
The following optional environment variables can be set with `.env`:
| Name | Type | Description |
|-|-|-|
| `APACHE_CONFIG` | boolean | Whether to generate an `.htaccess` Apache config file at the root of the output directory or not. |
### Build and deploy to remote
```bash
npm run build
```
Then, if using rsync, after configuring the `websitebm` host (or the name of your choosing) in `~/.ssh/config`, you can use a command like:
Then, if you're using rsync, after configuring the `websitebm` host (or the name of your choosing) in `~/.ssh/config`, you can use a command like:
```bash
rsync --delete-after -acP dist/ websitebm:/home/public