嗨我在redmine中使用wiki来制作一些文档,在"评估期".这个wiki被托管在网络的某个地方,我无法访问,可以访问数据库,而不是可编辑/呈现的维基页面.现在我的想法更清楚了.我想在mediawiki实例上自己托管wiki.
问题是如何将旧维基的内容转换为新维基.
我的redmine wiki上没有提取按钮.(但我知道如何使用mediawiki这样做)
由于我没有很多页面,我可以复制页面的内容(意思是用wiki标记语言的那个),但我不想手工进行转换.
你能帮助我吗?
规格: - Windows 7 x64 - Ruby 2.0.0 x64 - DevKit-mingw64-64-4.7.2
我尝试安装redmine bundle,但是当我使用时bundle install
出现错误
d:\www\xampp\htdocs\projekty\redmine\redmine-2.3.3>bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0)
Using i18n (0.6.1)
Using multi_json (1.8.2)
Using activesupport (3.2.13)
Using builder (3.0.0)
Using activemodel (3.2.13)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.2.2)
Using actionpack (3.2.13)
Using mime-types (1.25)
Using polyglot …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用以下 PHP 代码将文件上传到 Redmine。
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url)
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
'Content-Type: application/octet-stream',
'X-Redmine-API-Key: ' . $apiKey));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_BINARYTRANSFER, TRUE);
$data = array('file' => '@' . $filePath);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_POST, 1);
$token = curl_exec($curl);
Run Code Online (Sandbox Code Playgroud)
此请求返回有效的上传令牌,但文件在上传过程中已损坏。例如,尝试上传空的 .txt 文件会导致上传的被覆盖的 .txt 文件现在包含以下行。
------------------------------------------dde946a683ac
内容处置:表单数据;名称=“文件”;filename =“/var/www/wp-content/uploads/redmine_uploads/emptyTextFile.txt”内容类型:application/octet-stream
------------------------------------------dde946a683ac--
有什么想法为什么会发生这种情况吗?
我正在尝试从 redmine 中获取所有问题
list_1 = []
issuess = conn_red.issue.all()
for i in issuess:
list_1.append(i)
print len(list_1)
Run Code Online (Sandbox Code Playgroud)
打印语句结果为 575
但是在 Redmine 中,我有 2735 问题。我想知道,
我只是想在后台运行ruby / rail服务器。这个应用程序包含一个redmine,我使用以下命令手动运行服务器:
bundle exec ruby bin/rails -d server -b 192.168.0.8 webrick -e production
Run Code Online (Sandbox Code Playgroud)
我试图在末尾添加&以在其他线程中运行它,但是由于某种原因,它仍然在前台运行它,在Google上查看后,我发现了这一点:https : //github.com/macournoyer/thin。但是我不确定如何使它运行服务器调用后我拥有的所有其他参数。
构建新系统:
\n ubuntu 20.04\n mysql 5.7.38\n ruby-install and chruby\n ruby 3.0.4\n redmine 5.0.0\n
Run Code Online (Sandbox Code Playgroud)\n在用户帐户中,尝试安装redmine 5.0.0:
\nbundle install\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\n\ncurrent directory: /home/test_user/.gem/ruby/3.0.4/gems/mysql2-0.5.4/ext/mysql2\n/opt/rubies/ruby-3.0.4/bin/ruby -I /opt/rubies/ruby-3.0.4/lib/ruby/3.0.0 -r ./siteconf20220520-28025-uxnsbe.rb\nextconf.rb\n...\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.\nProvided configuration options:\n...\n/opt/rubies/ruby-3.0.4/lib/ruby/3.0.0/mkmf.rb:1050:in `block in find_library': undefined method `split' for\nnil:NilClass (NoMethodError)\n ...\n
Run Code Online (Sandbox Code Playgroud)\n检查日志,我看到以下错误:
\nconftest.c: In function \xe2\x80\x98t\xe2\x80\x99:\nconftest.c:14:57: error: …
Run Code Online (Sandbox Code Playgroud) 我知道我可以使用#number将提交链接到一个问题.但我正在寻找一种通过svn提交来改变问题状态的方法.
我正在寻找类似于Trac http://trac.edgewall.org/wiki/TimeTracking的东西.如果您的svn评论是"此任务已完成(参考123)",那么它会在问题日志中添加消息.
有人知道是否有办法做到这一点?
我正在尝试使用 Redmine 访问 git 存储库。不幸的是,我无法做到这一点,这是给出的错误:
The entry or revision was not found in the repository.
Run Code Online (Sandbox Code Playgroud)
这是我的配置:
SCM: Git
Main Repository: Checked
Identifier: wide
Path to repository: /var/repos/git/wide
Path encoding: UTF-8
Run Code Online (Sandbox Code Playgroud)
我尝试了几件事。将我的非裸存储库克隆到裸存储库后,我尝试了以下几种路径:
/var/repos/git/wide
/var/repos/git/wide/.git
/var/repos/git/wide.git
/var/repos/git/wide.git/.git
Run Code Online (Sandbox Code Playgroud)
我还尝试将我的 git 存储库的所有者更改为 apache(因为 apache 运行 Redmine)。
任何帮助,将不胜感激。问候。
谁能为我提供替代方法以及安装Redmine HA实例的步骤?
我试图用Docker swarm解决它,但是它看起来非常复杂。