1
A
回答
0
我不知道有什么证明,但Heroku的宝石本身通过REST会谈到他们的API,以便您可以采取内部的一个高峰。
Heroku中有自动缩放的宝石,我已经看到了其他的例子,你可以将Heroku的宝石包含到你自己的应用程序中,以便能够连接到它们的API,而不用过多地涉及它的胆量。
4
This link此时适用于API。对于自动缩放,我们使用hirefire。这是一个托管的服务,比open source gem的能力稍强一点。
4
Heroku gem允许您轻松添加和删除过程。
宝石“的Heroku”
您可以在Ruby中创建一个客户端,可以设置员工或DYNOS数量等
client = Heroku::Client.new(username, password)
client.list # provides a list of heroku apps
client.info(app) # provides info on the particular app, including dynos and workers
client.workers(app) # returns the number of workers currently running for the app
client.set_workers(app, qty) # sets the number of workers for the app
client.dynos(app) # returns the number of dynos currently running for the app
client.set_dynos(app, qty) # sets the number of dynos
基本上,任何你可以在命令做线,你可以做的宝石。
结账https://github.com/heroku/heroku/blob/master/lib/heroku/client.rb了解详情。
+1
您可以使用您的api密钥进行身份验证。 (username =>“”,pass =>“API_KEY”) – trcarden 2012-07-13 16:31:28
1
看来Heroku :: Client现在已被弃用。 heroku-api宝石有你需要的能力。 https://github.com/heroku/heroku.rb
相关问题
- 1. 私有REST API
- 2. BaseX:没有验证的公共REST API
- 3. Codeigniter rest api没有终止set_response
- 4. LinkedIn REST API的帖子没有内容
- 5. C#使用XML API - 没有REST
- 6. 没有UI的REST API中的ReactiveX
- 7. 有没有人在完整的REST API中使用swaggervel?
- 8. 有没有办法获得Docker守护进程REST API调用?
- 9. netsuite是否有REST API?
- 10. Heroku - 没有bower_components文件夹
- 11. Heroku管道没有github
- 12. 上传到heroku没有git
- 13. heroku没有看到表db
- 14. Heroku没有运行吞咽?
- 15. MongoLab和Heroku没有猫鼬
- 16. 有没有Megaupload API?
- 17. 有没有Instruments API?
- 18. 有没有Brainfuck API?
- 19. 有没有基于REST的ORM?
- 20. Heroku REST API在java中调用
- 21. 有没有办法unfork heroku数据库
- 22. WCF REST Webinvoke没有找到
- 23. Heroku + Rails错误:“进入V8 API没有正确锁定到位”
- 24. 在Heroku上没有家中的文件
- 25. TestFairy使用REST的“没有权限”
- 26. 有没有图像的API?
- 27. 有没有Javascript调试API?
- 28. 有没有Google Insights API?
- 29. 有没有API来从Twitter
- 30. 有没有Apple Direction API?
你能分享最后一个例子的链接吗?谢谢 – donald 2011-06-08 13:09:40
机车(CMS)使用Heroku gem来添加自定义域,例如https://github.com/locomotivecms/engine/blob/master/lib/locomotive/hosting/heroku.rb – 2011-06-08 14:03:56