Initial commit of Astro version
This commit is contained in:
commit
e3d1f6999b
79 changed files with 9880 additions and 0 deletions
48
README.md
Normal file
48
README.md
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# badmanners.xyz
|
||||
|
||||
Bad Manners's personal website, built using Astro + Typescript + TailwindCSS.
|
||||
|
||||
## Requirements
|
||||
|
||||
- Node.js 20+
|
||||
- (optional) rsync or LFTP, for remote deployment.
|
||||
|
||||
## Development
|
||||
|
||||
### Setup
|
||||
|
||||
```bash
|
||||
git clone https://git.badmanners.xyz/badmanners/badmanners.xyz
|
||||
cd badmanners.xyz
|
||||
npm install
|
||||
```
|
||||
|
||||
### Local development
|
||||
|
||||
```bash
|
||||
npm run dev # Start development server (quit with Ctrl-C)
|
||||
npm run prettier # Prettier formatting
|
||||
```
|
||||
|
||||
### 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:
|
||||
|
||||
```bash
|
||||
rsync --delete-after -acP dist/ websitebm:/home/public
|
||||
```
|
||||
|
||||
Or if you prefer LFTP, create a `.env` file at the root of the project:
|
||||
|
||||
```env
|
||||
DEPLOY_LFTP_HOST=https://example-webdav-server.com
|
||||
DEPLOY_LFTP_USER=example_user
|
||||
DEPLOY_LFTP_PASSWORD=sup3r_s3cr3t_password
|
||||
DEPLOY_LFTP_TARGETFOLDER=sites/badmanners.xyz/
|
||||
```
|
||||
|
||||
Then run `npm run deploy-lftp`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue