[英]Capistrano 3.0.0
Has any one used Capistrano 3.0.0
? 有没有人用过
Capistrano 3.0.0
? I'm new to rails and web development in general, and I've never used Capistrano before, and I need to deploy my app on Heroku with Capistrano
in order to user sidekiq
and redis-server
. 我对rails和web开发很新,我以前从未使用过Capistrano,我需要在
Capistrano
上使用Heroku部署我的应用程序才能使用sidekiq
和redis-server
。 Should I use an older version of Capistrano, where I could find more resource to help get started, or is this considered a bad thing ? 我应该使用较旧版本的Capistrano,在那里我可以找到更多资源来帮助您入门,还是这被视为一件坏事? Any suggestions or tips would be very much appreciated.
任何建议或提示将非常感谢。
Capistrano and Heroku are not compatible technology. Capistrano和Heroku不兼容技术。
Heroku provides a git source control remote server. Heroku提供了一个git源代码控制远程服务器。 When you want to deploy code onto your Heroku app, you use git to push a copy of the code.
如果要将代码部署到Heroku应用程序上,可以使用git来推送代码副本。 This triggers a Heroku deployment through their process.
这会通过他们的进程触发Heroku部署。
Capistrano is an SSH based system deployment framework. Capistrano是一个基于SSH的系统部署框架。 It allows you to connect via SSH to each server in your environment and issue commands with a large library of built-in functionality.
它允许您通过SSH连接到环境中的每个服务器,并使用大型内置功能库发出命令。 Heroku does not allow SSH access to configure systems.
Heroku不允许SSH访问配置系统。
Do you have deploys/configuration working on Heroku at all? 您是否在Heroku上部署/配置? If not, you should start there with the basic Heroku Rails setup documents.
如果没有,您应该从基本的Heroku Rails安装文档开始。
If you do have your web app running, but need Redis and Sidekiq, you will need to: 如果您确实在运行Web应用程序,但需要Redis和Sidekiq,则需要:
Procfile
within your app Procfile
添加Sidekiq工作进程 Your app will then have a number of web
processes from the Procfile
running your Rails app front-end and a number of back-end asynchronous workers running Sidekiq. 然后,您的应用程序将从运行Rails应用程序前端的
Procfile
和许多运行Sidekiq的后端异步工作程序中获得许多web
进程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.