问题标签 [grunt-forever]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
591 浏览

gruntjs - 配置 grunt-forever 时出错

我在 CentOS 上,正在处理 node.js - angular.js 项目,我有设置节点,即使从终端注销,使用forever模块也能在后台继续运行。

我想对前端做同样的事情,这样它就可以在后台继续运行。我在前端使用 Yoeman,到目前为止,我一直在使用命令启动前端grunt serve

我安装了模块grunt-forever,但在配置它时遇到问题。

参考文档后,我补充说:

在块的开头和代码块module.exports底部的以下配置:module.exports

当我这样做时grunt test,我得到了:

我仍然继续做grunt forever:lorem-server:start,但得到了同样的错误。

这是我的完整Gruntfile.js

我在这里做错了什么?有人可以指出我正确的方向吗?

0 投票
1 回答
267 浏览

gulp - 通过 foreverjs 执行 gulp-tasks

我目前正在努力构建一个启动我的网络应用程序的脚本。

我想使用foreverjs,因为我已经用它启动了我的后端。我的 json 文件将由 foreverjs 执行,如下所示:

我不太确定我应该在前端使用什么。我需要使用 gulp,所以我假设我必须在“命令”中添加它。但是,我的脚本需要为空,这在foreverjs 中是不允许的。关于如何通过 foreverjs 运行 gulp 的任何建议?

0 投票
1 回答
533 浏览

angularjs - hot to run grunt serve with grunt-forever

我使用 yeoman 角度生成器,我需要永远运行 grunt serve (grunt-forever) 我尝试过 (gruntfile.js),如下所示:

当我尝试“grunt serve”或“grunt forever:start”时 - “verifying property forever.start 存在于配置中......错误

无法处理任务。警告:缺少必需的配置属性“forever.start”。使用 --force 继续。” 我该怎么办?