Skip to content

Deploy Prototype Website

Mark Woon edited this page Jul 27, 2022 · 6 revisions

This will deploy a prototype of the PharmCAT website using the surge service. This prototype will be published to public a URL so they can be shared with anybody.

Prerequisites

First, checkout the PharmCAT repo.

If you plan on running things directly:

If you plan on running with Docker:

  • create Jekyll Docker image: make jekyllDocker

  • run Jekyll Docker in interactive mode: make jekyll

    This allows you to run the commands below. To exit interactive mode, just type exit.

Directions

Starting from the PharmCAT directory:

  1. cd docs
  2. make setup (only needs to be run once)
  3. make build
  4. surge _site --domain <subdomain>.surge.sh
    • choose a subdomain of your choice (e.g. <your_userid>-pcat.surge.sh)
    • follow prompts to sign in to surge
  5. Prototype published, go to the URL from the previous step to view it

To make the docs available for everyone instead of your own local site:

  1. cd docs
  2. make setup (only needs to be run once)
  3. make next