Skip to content

Deployment

Deploy Your Running Page in Various Platforms

Linux Server

Recommend System: Ubuntu 20.04 LTS

Requirements:

  • Nginx or any other web servers;
  • Python Environments (Anaconda is recommended);
  • Nodejs (14) and Yarn (1.22.10 stable);

Steps:

  1. Point your domain to your server;
  2. Set your website root to /public folder;
  3. Use Anaconda create a Python environment with any name you want;
  4. Follow the guide in Installation Part;
  5. Done. Have fun with your Running Page!

Github Pages

  1. If you are using a custom domain for GitHub Pages, open /.github/workflows/gh-pages.yml, change fqdn to the domain of your site;

  2. Modify gatsby-config.js, change pathPrefix to your own URL path.

Example: If the repository's name is running_page, then your Github Pages URL will be https://{yourname}.github.io/running_page , then the value will be /running_page;

  1. Modify arguments in run_data_sync.yml;
  2. Change env to your own app type and info; image
  3. Add your secret in repo Settings > Secrets (add only the ones you need); image My secret is as follows image
  4. Add your GitHub secret and have the same name as the GitHub secret in your project; image

  5. Go to repository's Actions -> Workflows -> All Workflows, run Data Sync workflow first;

  6. After that done, choose Publish GitHub Pages from the left panel, click Run workflow. Make sure the workflow runs without errors, and gh-pages branch is created;

  7. Go to repository's Settings -> GitHub Pages -> Source, choose Branch: gh-pages, click Save. Then all done. Enjoy running!

Vercel

  1. Connect Vercel to your GitHub repo; image

  2. Import repo; image

  3. Awaiting completion of deployment;

  4. Done. Enjoy Running!

Cloudflare Pages

  1. Click Create a project in Pages to connect to your Repo;
  2. After clicking Begin setup, modify Project's Build settings;
  3. Select Framework preset to Gatsby;
  4. Scroll down, click Environment variables, input the variable below:

    Variable name = PYTHON_VERSION, Value = 3.7

  5. Click Save and Deploy.