Launch Scout Design System

Set Up

You’ll need Ruby 3.1.0

Forestry.io - Some of the site can be edited in this online tool. The rest is in the repo.

This Repo: https://github.com/gaslight/launchscout-website/

Media location: https://gaslight-website.s3.amazonaws.com/website-images

Run Local Server

bundle exec jekyll serve

see local changes at https://localhost:4000/

Setting Redirects

To add redirects (for example – a custom URL that simply redirects to another page), we use the Jekyll Redirect-From plugin. You’ll add something like the following to the YAML front-matter of a given page:

redirect_from:
  - /foo/
  - /bar/
  - /baz/qux/

Visiting any of those will redirect to the target page.

Deployment

The website lives under the Launch Scout team on Heroku: https://dashboard.heroku.com/teams/launchscout/apps

It is deployed using the static buildpack: https://github.com/heroku/heroku-buildpack-static

Commits to main are automatically deployed through GitHub Actions: https://github.com/gaslight/launchscout-website/tree/main/.github/workflows

Media

Images are now stored on AWS S3. Forestry uses the S3 bucket as its Media library and that is what is shown in the Media Manager. Forestry also wants all media in a single folder, or preferably, at the bucket level. For this project, they are in the website-images folder. This folder shows in the Media Manager as an unknown thing to Forestry. DO NOT DELETE THIS FOLDER Images can be added directly to the S3 bucket, or uploaded/deleted from within Forestry, which is the preferred method.