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 toREMOTE_KEY
- SSH keyREMOTE_KEY_PASS
- Password for SSH keyREMOTE_PATH
- Where the code is deployed on the serverREMOTE_USER
- authenticated user for the SSH key
Workshop tickets
When someone buys a ticket to the workshop:
- Update the
WORKSHOP_TICKETS_REMAINING
GitHub variable (not secret) - Click into the most recent successful workflow
- 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.