问题标签 [octopus]

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 浏览

ruby-on-rails-4 - 使用 Rails ar-octopus gem 执行事务

我在 ar-octopus ( https://github.com/tchandy/octopus ) 文档中找不到,我该如何执行交易。

执行时:

中的代码没有在事务中运行。

请指教。

0 投票
2 回答
10022 浏览

mysql - Rails: How to split write/read query across master/slave database

My website has a very heavy read traffic. A lot heavier than write traffic.

To improve the performance of my website I have thought of going with master/slave database configuration.

The octupus gem seems to provide what I want, but since my app is huge I can't go though a millions of source code line to change the query distribution(sending read query to slave server and write query to master server).

MySQL Proxy seems to be a great way to resolve this issue but since it is in alpha version I don't want to use it.

So my question is what is the best way to split read/write queries across master/slave server?

Is it possible to split read/write query without using any gems in rails?

0 投票
1 回答
50 浏览

github - Is there any way to turn back 'GitHub Bootcamp' bar on main github page?

I've closed a bar on the main GitHub's page that presented below:

Bar picture

Is there a way to turn it back? :)

0 投票
0 回答
233 浏览

ruby-on-rails - 使用带有特定于heroku的控制器的章鱼

我刚刚开始使用带有导轨的章鱼宝石,我尝试过正常情况

以上我已用于测试目的,主要用于控制器特定,而不是模型特定。我把它放在应用程序控制器中

并在适当的控制器中调用该方法,因此它可以工作,但是当我移至 heroku 时,我已遵循此https://devcenter.heroku.com/articles/distributing-reads-to-followers-with-octopus,因为我需要仅对某些控制器读取。那么在这种情况下,我如何在特定控制器上使用该跟随器?

0 投票
1 回答
1879 浏览

powershell - 从 PowerShell 脚本设置 Octopus 参数

我正在使用 Octopus,我需要在我的一个 PowerShell 脚本中添加修改 Octopus 参数(不是变量...)的机会。简而言之,我的网站交替部署在 2 个文件夹中,我必须对此进行跟踪。我的想法是设置一个参数,在每次运行脚本时读取实际值,从而知道在哪里部署这个新版本。

我也尝试了一些东西,比如

但没有成功。

我希望我已经足够清楚,并提前感谢大家会回复。

0 投票
2 回答
2324 浏览

powershell - 如何在 Sitecore 7.2 中安装 TDS 生成的 .update 包?

在我的组织为面向公众的 .com 设置 Sitecore 7.2 时,我在尝试实施适当的 CI、发布管理和部署管理时遇到了麻烦。我能够使用 MSBuild 编译我的 Sitecore MVC 代码,从 TDS 编译 .update 包,并将这些包中的每一个打包到 Octopus Deploy 的 .nupkg 文件中。我遇到的是,一旦我部署了 MVC 代码,我还必须部署 Sitecore 结构/内容,这需要我安装 .update 包。我已经尝试过https://github.com/adoprog/Sitecore-Deployment-Helpers提供的解决方案但是对于一个相当轻量级的站点,这仅在我的系统包的 Octopus Deploy 中超时约 20 分钟,更不用说没有触及结构或内容。我正在寻找一种方法,最好是通过 PowerShell(严格来说,是安装该软件包后内置于 sitecore Web 界面中的 Sitecore PowerShell 扩展)。当且仅当我可以使用来自 Octopus Deploy 的 PowerShell 工作流的 SPE 的 Cmdlet 时,使用 SPE 是可以接受的。

请指教。

0 投票
0 回答
48 浏览

teamcity - 在没有 Git 的情况下部署图像 TeamCity Octopus

嗨,我有一个使用团队城市和章鱼进行部署的 git 站点。

我遇到的问题是我的开发环境中有数千张图像需要进行暂存。我不想检查 git。在不添加到 git 的情况下自动执行此步骤的最佳方法是什么?我目前正在使用 teamcity 和 octopus 进行网站部署。

0 投票
2 回答
362 浏览

ruby-on-rails - Octopus gem 中的默认迁移组

我试图了解章鱼 gem 上的默认迁移组是如何工作的。一直在谷歌搜索,关于这部分宝石的信息并不多。任何帮助将非常感激。

分片.yml

rake db:migrate 只更新在 database.yml 文件中定义的数据库

0 投票
2 回答
830 浏览

ruby-on-rails - 在开发环境中通过 Octopus gem 进行 Rails Postgresql 复制

显然,当使用 Octopus gem 进行 Postgres 复制时,一切都应该是即插即用的。但是我似乎找不到我做错了什么。

这是我的config/shards.yml

AR模型Provider(​​我通过Rake任务在每个应用程序中创建完全相同的表)我想同步/复制到我的奴隶:

我通过 Rails 服务器启动这两个应用程序并进入Masterapp的控制台,然后从那里:

问题是,当我打电话时,Provider.using(:master)...我期待:

1 - 在master的数据库中创建记录。

2 - 在slave1的数据库中复制相同的记录。<--- 这不会发生。

0 投票
1 回答
1214 浏览

octopus-deploy - 带有 OctoDeploy 的 TFS:部署 Octopus 退出并使用代码 - -1

我在 TFS 中出现间歇性构建失败

你如何解决Octopus Exited with code - 1