简体   繁体   English

机车不在本地开发站点中显示数据

[英]Locomotive wagon does not display data in local development site

I have an existing locomotive site that I am setting up for development on my machine. 我有一个现有的机车站点,准备在机器上进行开发。 The engine is running locally and I am using the wagon gem to edit the theme files. 该引擎在本地运行,我正在使用旅行车gem编辑主题文件。

The engine seems to be fine, although a little slow. 引擎似乎很好,尽管有点慢。 What I am having trouble with is the wagon side of things. 我遇到的麻烦是事物的困境。

I have set up the deploy.yml to point to my local engine and run wagon pull development this started fine but timed out before it could pull everything. 我已经设置了deploy.yml以指向我的本地引擎并运行wagon pull development这虽然很好,但是在它可以提取所有内容之前超时。 So instead I ran wagon pull staging to pull from the existing staging server and this ran fine. 因此,我改为运行wagon pull staging以从现有的分段服务器中拉出,并且运行良好。

When I run wagon serve I get the template files showing correctly but none of the content from the data yaml files is shown. 运行wagon serve我可以正确显示模板文件,但不会显示数据yaml文件中的任何内容。

Am I missing something or is it an issue created by first pulling from development then staging? 我是否缺少某些东西?或者是先退出开发然后进行分阶段创建的问题?

Turns out someone else working on the project had extended liquid inside the engine to add a couple of extra things. 事实证明,从事该项目的其他人已经在发动机内部增加了液体,从而增加了一些额外的功能。 These things were needed to show the content, but as the wagon gem didn't contain these extensions it couldn't use them to show the content. 这些东西是显示内容所必需的,但是由于wagon gem不包含这些扩展名,因此无法使用它们来显示内容。

The fix was to just use wagon to push to a local engine to view the changes. 解决方法是仅使用旅行车将其推送到本地引擎以查看更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM