问题标签 [deployd]

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 投票
4 回答
3150 浏览

mongodb - 已部署 :: MongoDB 启动失败

我是 Deployd 和 MongoDB 的新手。我已经在我的 Windows-XP 系统上安装了 Deployd (www.deployd.com) 0.6.9。我按照正在学习的书的指示在提示符下执行了以下命令

现在,当我运行以下命令时

要启动已部署的服务器,我收到以下错误::

它指出 MongoDb 无法启动。我进入目录"C:\Program Files\Deployd\tools",发现有一个文件名为"mongod".

我以前从未在我的计算机上安装过 MongoDB。这是我第一次使用 Deployd,所以我不知道"Mongod"工具文件夹中的文件是否与 MongoDB 相同,或者我必须在计算机上单独安装 MongoDB。

有人可以指出我正确的方向。

谢谢。

0 投票
1 回答
3487 浏览

node.js - node and or npm issue

I am having various permission and or path issues with some npm packages, this time being deployd's dpd binary. However it still seems related to pretty much any other familiar frustrating npm path issue that i receive now and then. Its pretty much a familiar face of npm usage it seems, given my constant use of -g, and not, when installing npm packs..

So far to resolve it I tried reinstalling deployd and mongodb many times from user and globally, i have even reinstalled npm. im getting consistent package errors when running dpd. I found lots related, but none that have worked. Here is my issue when running dpd today. Any grand suggestions?

When ran from linux i the following $ dpd starting deployd v0.8.4... Failed to start MongoDB (Make sure 'mongod' are in your $PATH or use dpd --mongod option. Ref: http://docs.deployd.com/docs/basics/cli.html) bye

even if i run it sudo i get the same error.

When ran from windows on a samba share mapped network drive i get this

what am i doing wrong here?

I cannot find this file, nor this line of code anywhere, child_process.js:1162 throw errnoException(err, 'spawn'); when i grep for it, one reference does turn up for the line of code, that's /bin/node, and when i open it in vim, it looks encrypted... i think ill look again, and that line may be there... hmm.

ok i did find that line in node binary itself,

is this some kind of crazy permission error? i think i set at 755 to all files, and dirs when ran as user as well.. no selinux installed, might have some facls... doubt it, in this dir..

I reinstalled npm and nodejs, and didnt help. This is on an arch linux box.

Edit: yeah that's not working either for some reason, even after i resolved the other one by correcting permission issues.

0 投票
1 回答
419 浏览

ios - 已部署 + Swift 用户身份验证

我是斯威夫特的新手。我想对用户进行身份验证。我使用“已部署”作为我的服务器。这就是 API 的文档所说的:

HTTP

要对用户进行身份验证,请向 /login 发送一个 POST 请求,请求正文中包含用户名和密码属性。

发布/用户/登录

{“用户名”:“约翰史密斯”,“密码”:“密码”}

我正在使用 Alamofire 解析 JSON 数据。这是我的代码:

这是来自 Xcode 控制台的响应:

我知道我这样做的方式完全错误。

0 投票
0 回答
148 浏览

ios - 如何使用用户名 + 电子邮件 + 密码 [Swift + Deployd] 注册?

如何让 Alamofire(swift-ios) 和 Deployd 接受第三个参数(属性),即电子邮件?它工作正常,但我也需要添加一个电子邮件文本字段。

SWIFT代码:

来自已部署的文档:

为您的用户添加自定义属性和角色,并编写自定义事件脚本来控制对您的应用程序用户的访问。

我真的不知道如何编写自定义事件脚本。除了 Swift,我真的不知道任何语言。我已经从仪表板为用户创建了“电子邮件”属性,但它没有生效。

0 投票
1 回答
131 浏览

objective-c - 如何使用 Deployd 防止重复输入?

我正在使用 Swift iOS 部署。我要保存的只是两个文本字符串。我只是想防止重复条目。

0 投票
1 回答
371 浏览

swift - 限制从 Swift 中的已部署查询返回的对象

我使用 Deployd 作为我的 Swift 应用程序的后端。这就是我当前查询 JSON 数据的方式。我需要限制从查询返回的对象数量。我将自己实现分页部分。我只想知道如何$limit在查询中嵌入下面提到的方法。任何建议将不胜感激。

http://docs.deployd.com/docs/collections/reference/querying-collections.html#s- $limit-1416

来自 Deployd 的文档:

$limit命令允许您限制从查询返回的对象数量。这通常用于分页,以及 $skip.

0 投票
1 回答
369 浏览

node.js - 部署 部署到 Heroku Dashboard Key

我有一个已部署的应用程序,我正在尝试部署到 Heroku。我已经成功地部署了应用程序,并且能够通过它的 url 访问它。我现在正在尝试访问仪表板。为了访问仪表板,我需要拥有从服务器生成的密钥。我知道有两种方法可以做到这一点。

此处描述的第一种方法在本地生成密钥并将其推送到 heroku。我觉得这种方法在密钥发布到 VCS 的意义上是不安全的。

第二种方法是使用 Procfile 和 listdpd keygendpd showkey. 但是由于某种原因,这种方法对我不起作用。我看到命令在 heroku 日志中执行,但它没有打印出密钥,我无法通过执行heroku run dpd showkey.

我想弄清楚为什么在我的 procfile 中列出命令不起作用。请在下面找到我的文件:

我的日志文件如下:

谢谢!

0 投票
1 回答
355 浏览

node.js - 部署的mongodb连接错误

我正在学习 Angular js 并尝试运行已部署的服务器。遵循此处提到的http://terraltech.com/how-to-setup-deployd-on-ubuntu-server/步骤。

当我尝试从已部署的仪表板中添加一行时,作为响应出现以下错误

这是我的 production.js 服务器配置。

这是我在 production.js 中配置的 mongo 信息

我不确定我部署的数据库是否没有显示在这里。

有人可以帮我解决这个问题吗?

0 投票
1 回答
187 浏览

swift - 部署比较和 swift 与 alamofire

我正在尝试使用 alamofire 从我的已部署 API 中查询数据。如何在请求中进行比较。我有类似的东西:

但结果是空的。在我的仪表板中,我有一个数字列,其值为:1、2、3 和 4。所以响应应该返回我的数字为 4 的行。

有任何想法吗?感谢

0 投票
1 回答
373 浏览

shell - 部署错误:找不到模块'deployd/lib/resource'

我在已部署中安装了文件上传模块,并且无法启动已部署的服务器。

要安装,我使用了这些命令:

当我启动服务器时,我得到了这个错误