No description
Find a file
2024-09-16 08:55:37 -03:00
.vscode Add Resetera and pubkey fingerprint, and block bots 2024-09-04 18:07:00 -03:00
public Add Resetera and pubkey fingerprint, and block bots 2024-09-04 18:07:00 -03:00
scripts Add Keyoxide and improve index links handling 2024-08-25 18:06:33 -03:00
src Clean up main page links 2024-09-16 08:55:37 -03:00
.gitignore Initial commit of Astro version 2024-08-15 21:32:14 -03:00
.prettierignore Consolidate socials on index and add View Transitions API support 2024-08-20 00:16:28 -03:00
.prettierrc.mjs More websites, better licenses with TOML, more minute improvements 2024-08-26 00:16:48 -03:00
astro.config.mjs Clean up main page links 2024-09-16 08:55:37 -03:00
LICENSE.md Add GitGud and astro-htaccess integration 2024-08-30 17:21:52 -03:00
package-lock.json Clean up main page links 2024-09-16 08:55:37 -03:00
package.json Clean up main page links 2024-09-16 08:55:37 -03:00
README.md Use history.replaceState ageVerified query and remove ENABLE_VIEW_TRANSITIONS 2024-08-26 14:52:19 -03:00
tailwind.config.mjs Initial commit of Astro version 2024-08-15 21:32:14 -03:00
tsconfig.json Use path aliasing 2024-09-14 17:50:22 -03:00

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

git clone https://git.badmanners.xyz/badmanners/badmanners.xyz
cd badmanners.xyz
npm install

Local development

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 variable can be set within a .env file:

Name Type Description
APACHE_CONFIG boolean If set to true, generates an .htaccess Apache config file at the root of the output directory.

Build and deploy to remote

npm run build

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:

rsync --delete-after -acP dist/ websitebm:/home/public

Or if you prefer LFTP, create a .env file at the root of the project:

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.