Giter VIP home page Giter VIP logo

Comments (9)

yihong0618 avatar yihong0618 commented on June 18, 2024
  1. 是同步的
  2. 理论上应该跟 GitHub 一样是你的数据。

from running_page.

tianheg avatar tianheg commented on June 18, 2024

是不是因为这里 https://github.com/gavenwan/running_page/actions/runs/8705624172/job/23876414423#step:8:25 ,没有新的跑步数据加入

我看这个 GitHub pages 上有页面,这个的数据是准确的吗 https://gavenwan.github.io/running_page/

from running_page.

gavenwan avatar gavenwan commented on June 18, 2024
  1. 是同步的
  2. 理论上应该跟 GitHub 一样是你的数据。

感谢,那肯定是我哪步操作有问题,我再去琢磨

from running_page.

gavenwan avatar gavenwan commented on June 18, 2024

是不是因为这里 https://github.com/gavenwan/running_page/actions/runs/8705624172/job/23876414423#step:8:25 ,没有新的跑步数据加入

我看这个 GitHub pages 上有页面,这个的数据是准确的吗 https://gavenwan.github.io/running_page/

是的,GitHub这个页面数据是准确的

from running_page.

gavenwan avatar gavenwan commented on June 18, 2024

是不是因为这里 https://github.com/gavenwan/running_page/actions/runs/8705624172/job/23876414423#step:8:25 ,没有新的跑步数据加入

我看这个 GitHub pages 上有页面,这个的数据是准确的吗 https://gavenwan.github.io/running_page/

你的意思是,因为我的keep同步数据没有更新,所以没能触发cloudflare与github同步前端页面,是这样理解吗?
因为我没搞清楚github action生成的前端页面去哪儿了以及怎么和cloudflare同步的(设置里是dist文件夹,但是这个项目的文件夹里没找到dist文件夹)

from running_page.

tianheg avatar tianheg commented on June 18, 2024

你的意思是,因为我的keep同步数据没有更新,所以没能触发cloudflare与github同步前端页面,是这样理解吗?

是的

我发现可能是这里出现了问题:

  SAVE_DATA_IN_GITHUB_CACHE: true # if you deploy in the vercal, check the README
  DATA_CACHE_PREFIX: 'track_data'
  BUILD_GH_PAGES: true # If you do not need GitHub Page please set it to `false`

你应该把 SAVE_DATA_IN_GITHUB_CACHEBUILD_GH_PAGES,都设为 false。这样你就会触发这个 job step:

      - name: Push new runs
        if: env.SAVE_DATA_IN_GITHUB_CACHE != 'true'
        run: |
          git config --local user.email "${{ env.GITHUB_EMAIL }}"
          git config --local user.name "${{ env.GITHUB_NAME }}"
          git add .
          git commit -m 'update new runs' || echo "nothing to commit"
          git push || echo "nothing to push"

它会更新你的 src/static/activities.json 文件,这样你的 Cloudflare Pages 上的网页就可以自动更新了

from running_page.

gavenwan avatar gavenwan commented on June 18, 2024

你的意思是,因为我的keep同步数据没有更新,所以没能触发cloudflare与github同步前端页面,是这样理解吗?

是的

我发现可能是这里出现了问题:

  SAVE_DATA_IN_GITHUB_CACHE: true # if you deploy in the vercal, check the README
  DATA_CACHE_PREFIX: 'track_data'
  BUILD_GH_PAGES: true # If you do not need GitHub Page please set it to `false`

你应该把 SAVE_DATA_IN_GITHUB_CACHEBUILD_GH_PAGES,都设为 false。这样你就会触发这个 job step:

      - name: Push new runs
        if: env.SAVE_DATA_IN_GITHUB_CACHE != 'true'
        run: |
          git config --local user.email "${{ env.GITHUB_EMAIL }}"
          git config --local user.name "${{ env.GITHUB_NAME }}"
          git add .
          git commit -m 'update new runs' || echo "nothing to commit"
          git push || echo "nothing to push"

它会更新你的 src/static/activities.json 文件,这样你的 Cloudflare Pages 上的网页就可以自动更新了

感谢,实测了一下,将两个参数都设置为false,然后action运行一次,会自动下载keep所有数据,触发sync任务,未触发building github page任务,但是cloudflare那边没有触发重建任务,前端页面也并未发生变化。泪水

from running_page.

gavenwan avatar gavenwan commented on June 18, 2024

你的意思是,因为我的keep同步数据没有更新,所以没能触发cloudflare与github同步前端页面,是这样理解吗?

是的

我发现可能是这里出现了问题:

  SAVE_DATA_IN_GITHUB_CACHE: true # if you deploy in the vercal, check the README
  DATA_CACHE_PREFIX: 'track_data'
  BUILD_GH_PAGES: true # If you do not need GitHub Page please set it to `false`

你应该把 SAVE_DATA_IN_GITHUB_CACHEBUILD_GH_PAGES,都设为 false。这样你就会触发这个 job step:

      - name: Push new runs
        if: env.SAVE_DATA_IN_GITHUB_CACHE != 'true'
        run: |
          git config --local user.email "${{ env.GITHUB_EMAIL }}"
          git config --local user.name "${{ env.GITHUB_NAME }}"
          git add .
          git commit -m 'update new runs' || echo "nothing to commit"
          git push || echo "nothing to push"

它会更新你的 src/static/activities.json 文件,这样你的 Cloudflare Pages 上的网页就可以自动更新了

不知道我更改了data_sync哪里的设置,突然cloudflare的数据更新了

from running_page.

gavenwan avatar gavenwan commented on June 18, 2024

可能是data_sync的设置原因,目前已解决

from running_page.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.