
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This is Rafflecopter's homepage. It is shown at [***] It is deployed to s3 in the bucket homepage.rafflecopter.com, which is served behind a cloudfront distribution. The main http://github.com/Rafflecopter/Raffle app's nginx proxies the homepage when not inside the app itself.
Primary Maintainer: https://github.com/runningskull
PAGES/*.hbs contains templates for any new/existing pages composed out of https://help.github.com/articles/markdown-basics/ and CONTENTTYPES contains partial templates for each section of a page / major content typeCONTENT contains specific configurations for each real section on a page. Each pages data is input according to one or more templates in TYPES in YAMLconfig is where we keep build-target-specific options like where to find the widgettemplates/img, templates/js, and templates/scss contain the things you would expect. Both js and scss are prebuilt using respective gulp tasks.In order to use the landing page editor, please run the following in your Terminal app located at Applications/Utilities/Terminal:
shellbash; /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; brew install git; cd $HOME; git clone https://github.com/Rafflecopter/homepage.git; cd homepage; ./INSTALL.sh
This will install the required software on your computer. Contact Grant or another developer if something errors out on you.
You will need to run through https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ to add an ssh-key to Github if you don't have one already. Also, you will need to have Grant or another developer create an Ultrahook key and add a webhook to the https://github.com/Rafflecopter/homepage/settings/hooks. There are many examples of existing webhooks in the homepage repo settings.
Each time that you want to edit the homepage:
homepage-watch --branch=your-branch-name (without the quotes) into a terminal windowThe majority of this app is developed using handlebars for templating and gulp for building and scripting. Below is an example descri***g the code organization and workflow:
The pricing page has the following section:
hbs<section class="pricing-table"> {{-- "pricecol-enterprise"}} {{-- "pricecol-premium"}} {{-- "pricecol-basic"}} </section>
This pulls in the 3 pricing columns, which are defined in content/price-col-*.yml:
yaml_type: "price-col" plan_name: "basic" title: "Basic"
The _type: line will pull in the templates/sections/price-col section template. First it will run the price-col/index.js file to modify the configuration given by the content config.
javascriptmodule.exports = null
In this case, the index.js does nothing, which is common. See widget-test-drive/index.js for a section that modifies the configs before templating.
Then we use price-col/template.html to template out the price-col-basic using the config from price-col-basic.yml:
html<div id="{{_id}}" class="price-col" data-monthly="{{price}}" data-yearly="{{price_yearly}}">...</div>
And this templated section will show up in the built file: pricing.html. In production, we'll redirect www.rafflecopter.com/pricing to it.
Usually you'd use the https://github.com/Rafflecopter/developer-environment's helpers to serve the homepage.
devrun homepage start open http://homepage.raafl.com
If you wanted to run locally though without docker:
npm install npm start open http://localhost:8000
Since creating a landing page involves making a ton of commits, the cleanest way to merge them is to merge the PR by hand, and do a git rebase -i <sha-of-first-commit-on-branch> and http://git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages all the commits except for one. It's a good practice to delete the branch after you merge it.
You can use the docker container to deploy.
docker pull rafflecopter/homepage ./deploy.sh --production
Simply replace production with staging to deploy to your staging.
If you want to deploy without docker, use gulp
npm install NODE_ENV=production gulp deploy
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务