/masilotti.com

Source for masilotti.com, built with Bridgetown and Tailwind CSS.

Primary LanguageHTML

Masilotti.com

This repo holds the code for Masilotti.com.

The site is built with Bridgetown, a next-generation site generator powered by Ruby.

Requirements

Install

git clone git@github.com:joemasilotti/masilotti.com
cd masilotti.com
bundle install
yarn install

Development

Create a new file named .env and add the following to it:

WORKSHOP_PAYMENT_LINK=https://stripe.com
WORKSHOP_TICKETS_REMAINING=20

Start the server and navigate to localhost:4000.

bin/bridgetown start

Deployment

The GitHub Action copies builds the site then copies output/ via rsync to a remote server. This is configured via the following actions secrets.

  • REMOTE_HOST - Server to copy the code to
  • REMOTE_KEY - SSH key
  • REMOTE_KEY_PASS - Password for SSH key
  • REMOTE_PATH - Where the code is deployed on the server
  • REMOTE_USER - authenticated user for the SSH key

Workshop tickets

When someone buys a ticket to the workshop:

  1. Update the WORKSHOP_TICKETS_REMAINING GitHub variable (not secret)
  2. Click into the most recent successful workflow
  3. Click "Re-run all jobs"

Setting the variable to 0 will hide the payment link from the UI. It should also be deactivated on Stripe to ensure no one else can purchase a ticket.