Skip to content

Commit 07cf7a0

Browse files
authored
Merge pull request #146 from mcnuttandrew/netlify-deploy
Document netlify deploy process
2 parents c9f82c5 + 46e995a commit 07cf7a0

File tree

4 files changed

+39
-8
lines changed

4 files changed

+39
-8
lines changed

docs/data-and-deployment/deploying-to-static-website.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ sidebar_position: 2
77
import StructuredLinks from '@site/src/components/StructuredLinks/StructuredLinks.tsx';
88

99
<StructuredLinks
10-
referenceLinks={[
11-
{name: "GitHub Pages", url: "https://docs.github.com/en/pages/quickstart"},
12-
{name: "GitHub Custom Domain", url: "https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site"}
13-
]}
10+
referenceLinks={[
11+
{name: "GitHub Pages", url: "https://docs.github.com/en/pages/quickstart"},
12+
{name: "GitHub Custom Domain", url: "https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site"}
13+
]}
1414
/>
1515

1616
## Deploying using GitHub
17+
1718
Deploying your study should be relatively simple. We include a GitHub action that will build your study and deploy it to GitHub pages. The only item that the user must adjust is in the `.env` file in the root of the repository. At the top of this file, you should see `VITE_BASE_PATH="/study/"`. Change "/study/" to `"/<repo-name>/"`.
1819

1920
After this, you'll need to make sure that your Github repository has workflow actions enabled. Navigate to the actions tab in your repository as shown below.
@@ -43,3 +44,31 @@ Click 'Save' once you have made the switch. After a short period of time, your r
4344
:::info
4445
If you would like to enable admin sign ins when you deploy your static website, you will have to make sure that Firebase has your domain name set as an authorized domain. Please see [here](../authentication-authorization/adding-removing-ui/#adding-authorized-domains) to add your custom domain.
4546
:::
47+
48+
## Deploying using Netlify
49+
50+
Similarly deploying your study to Netlify is relatively straightforward. First, modify the VITE_BASE_PATH in your .env to be
51+
52+
```
53+
VITE_BASE_PATH="/"
54+
```
55+
56+
Then create a new file called `public/_redirects`, the contents of the file should be
57+
58+
```
59+
/* /index.html 200
60+
```
61+
62+
Next, navigate to netlify. This will likely require you to sign in or to make an account. From the home page, create a new project using
63+
64+
![Demo](./img/netlify_steps/netlify_1.png)
65+
66+
Then, on the next page, select Github. This will require you to authorize netlify as a GitHub app. This will then bring up a list of repos
67+
68+
![Demo](./img/netlify_steps/netlify_2.png)
69+
70+
Search for the appropriate repo and then select it. This will bring up a configuration screen for the new netlify project. You should enter a project name, which will determine the url (e.g., YOUR_PROJECT.netlify.app if your project name is YOUR_PROJECT). Scroll to the bottom of the screen and click "Deploy YOUR PROJECT NAME".
71+
72+
The first build will take a bit, but once it runs, your experiment should be ready!
73+
74+
If you are using netlify as a secondary venue for anonymization purposes, you can specify which branch netlify will use to deploy from. For instance a branch called `for-review' might remove all personnel and affiliation information.
56.5 KB
Loading
370 KB
Loading

docs/data-and-deployment/lifecycle-of-revisit.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import StructuredLinks from '@site/src/components/StructuredLinks/StructuredLinks.tsx';
44

55
<StructuredLinks
6-
referenceLinks={[
7-
{name: "Snapshots", url: "../../analysis/data-management/#snapshots"}
8-
]}
6+
referenceLinks={[
7+
{name: "Snapshots", url: "../../analysis/data-management/#snapshots"}
8+
]}
99
/>
1010

11-
A reVISit study will go through multiple stages over its lifetime. It'll first start as a local study that is iteratively refined until the study is fully built, it will then be deployed and tested, it will be send out to participants for data to be collected, and finally the study will be disseminated to reviewers.
11+
A reVISit study will go through multiple stages over its lifetime. It'll first start as a local study that is iteratively refined until the study is fully built, it will then be deployed and tested, it will be send out to participants for data to be collected, and finally the study will be disseminated to reviewers.
1212

1313
## Revisit Modes
1414

@@ -53,3 +53,5 @@ When disseminating your study to reviewers and the wider public, you should:
5353
- Disable data collection
5454
- Enable the study navigator
5555
- Make the analytics interface publicly accessible
56+
57+
If your are submitting to a venue that requires anonymization, such as ACM SIGCHI, consider creating a second deployment. If your primary deployment is on GitHub, consider adding a secondary one on [netlify](/docs/data-and-deployment/deploying-to-static-website/#deploying-using-netlify).

0 commit comments

Comments
 (0)