Skip to content

SoaPatrick/kirby-soapatrick

Repository files navigation

SoaPatrick

My Personal Website SoaPatrick.com created with Kirby that uses Vite with the kirby-vite plugin and TailwindCSS.

Installation

Clone this repository and run:

composer install
npm install

Development

Start vite's dev server and a simple php dev server by running:

npm run dev

Visit localhost:8888 in the browser. Vite's dev server (localhost:3000) is only used for serving js, css and assets.

Production

Build optimized frontend assets to public/dist:

npm run build

Deployment

Deploy public and site folder to server through rsync

npm run deploy

Content

The content folder is it's own repository (submodule). The repository for the content doesn't contain any media files. For the website to work, the latest content with all it's media files needs to be pulled through rsync from the production environment.

npm run content:pull

Local Mail Server

to recieve mails locally use Mailhog Mailhog

Install with brew

brew install mailhog

Start and stop the service locally

brew services start mailhog
brew services stop mailhog