MediaWiki API の結果

このページは JSON 形式を HTML で表現したものです。HTML はデバッグに役立ちますが、アプリケーションでの使用には適していません。

format パラメーターを指定すると出力形式を変更できます 。JSON 形式の非 HTML 版を閲覧するには、format=json を設定してください。

詳細情報については 完全な説明文書または API のヘルプを参照してください。

{
    "warnings": {
        "query": {
            "*": "Formatting of continuation data will be changing soon. To continue using the current formatting, use the 'rawcontinue' parameter. To begin using the new format, pass an empty string for 'continue' in the initial query."
        }
    },
    "query-continue": {
        "allpages": {
            "gapcontinue": "Software"
        }
    },
    "query": {
        "pages": {
            "125": {
                "pageid": 125,
                "ns": 0,
                "title": "Redmine",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "[[Category:Software]]\n= \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb =\n== \u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb ==\n\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u3081\u3093\u3069\u304f\u3055\u3044\u306e\u3067pkg\u3067\u3055\u304f\u3063\u3068\u3044\u308c\u308b\u3002\n<pre>\npkg install redmine\npkg install rubygem-unicorn\npkg install nginx\n</pre>\n== redmine\u306e\u8a2d\u5b9a ==\n=== \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a ===\nfirebird\u306f\u4f7f\u3048\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u3001sqlite\u3067\u4f7f\u7528\u3059\u308b\u3002<br>\n\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb /usr/local/www/redmine/config/database.yml \u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3059\u308b\u3002\n<pre>\nproduction:\n   adapter: salite3\n   database: db/redmine.sqlite\n   encoding: utf8\n \ndevelopment:\n  adapter: sqlite3\n  database: db/redmine_dev.sqlite\n</pre>\n=== \u79d8\u5bc6\u9375\u306e\u4f5c\u6210\u3068\u521d\u671f\u30c7\u30fc\u30bf\u306e\u6295\u5165 ===\nRedmine\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea(/usr/local/www/redmine)\u3067\u4f5c\u696d\u3092\u884c\u3046\u3002<br>\n\u79d8\u5bc6\u9375\u306e\u4f5c\u6210\n<pre>\nrake generate_secret_token\n</pre>\nDB\u306e\u521d\u671f\u5316\n<pre>\nsh\nRAILS_ENV=production rake db:migrate\nRAILS_ENV=production REDMINE_LANG=ja rake redmine:load_default_data\n</pre>\nFreeBSF 11.1\u306b\u3059\u308b\u3068 fdatasync \u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002<br>\nsqlite3\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306bports\u304b\u3089\u3044\u308c\u3066\u30ed\u30c3\u30af\u3057\u3066\u304a\u304d\u3002\n<pre>\nportsnap fetch\nportsnap extract\nwhereis sqlite3\n(cd into that directory)\nmake deinstall\nmake install clean ALLOW_UNSUPPORTED_SYSTEM=true\npkg lock sqlite3\n</pre>\n\u30c7\u30fc\u30bf\u914d\u7f6e\u30d5\u30a9\u30eb\u30c0\u306e\u4f5c\u6210\n<pre>\nmkdir -p tmp tmp/pdf public/plugin_assets\nchown -R www:www files log tmp public/plugin_assets\nchmod -R 755 files log tmp public/plugin_assets\n</pre>\n=== \u7a3c\u50cd\u78ba\u8a8d ===\nwebrick\u3067\u7a3c\u50cd\u78ba\u8a8d\u3092\u3059\u308b\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u7a3c\u50cd\u3055\u305b\u305f\u3046\u3048\u3067\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002\n-b \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u629c\u304b\u3059\u3068\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a2\u30c9\u30ec\u30b9\u306bbind\u3055\u308c\u3066\u3057\u307e\u3044\u3001\u5916\u90e8\u304b\u3089\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3067\u304d\u306a\u3044\u306e\u3067\u6ce8\u610f\u3002\n<pre>\nruby bin/rails server webrick -e production  -b 0.0.0.0\n</pre>\n=== unicorn\u306e\u8a2d\u5b9a ===\nnginx\u9023\u643a\u306e\u305f\u3081\u306b\u3001unicorn\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8a18\u8ff0\u3059\u308b\u3002<br>\n\u30d5\u30a1\u30a4\u30eb\u306f /usr/local/www/redmine/config/unicorn.rb \u3068\u3059\u308b\u3002\n<pre>\n@dir = \"/usr/local/www/redmine\"\nworker_processes 1\nworking_directory @dir\n\n#nginx\u306b\u6e21\u3059\u30bd\u30b1\u30c3\u30c8\u306e\u8a2d\u5b9a\u3002www\u306e\u4e0b\u306b\u7f6e\u304f\u3082\u306e\u3067\u306f\u306a\u3044\u306e\u3067/var\u306b\nlisten \"/var/run/unicorn.sock\"\npid \"/var/run/unicorn.pid\"\n\npreload_app true\n\nstdout_path File.expand_path(\"log/unicorn.stdout.log\", @dir)\nstderr_path File.expand_path(\"log/unicorn.stderr.log\", @dir)\n</pre>\n=== \u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a ===\nredmine\u3092\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u3067\u52d5\u304b\u3059\u6c17\u306f\u306a\u3044\u306e\u3067\u3001\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u52d5\u304f\u3088\u3046\u306b\u3059\u308b\u3002<br>\n/usr/local/www/redmine/config.ru \u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u308b\u3002\n<pre>\n# This file is used by Rack-based servers to start the application.\n\nrequire ::File.expand_path('../config/environment',  __FILE__)\n\n# \u3082\u3068\u3082\u3068\u306e\u8a2d\u5b9a\u3002\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u3067\u306e\u8d77\u52d5\u306b\u306a\u308b\u3002\n#run RedmineApp::Application\n\n# \u74b0\u5883\u5909\u6570\u3067\u3042\u305f\u3048\u3089\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3054\u3068\u306b\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3002\nif ENV['RAILS_RELATIVE_URL_ROOT']\n map ENV['RAILS_RELATIVE_URL_ROOT'] do\n    run RedmineApp::Application\n end\nelse\n run RedmineApp::Application\nend\n</pre>\n\n=== unicorn\u306e\u8d77\u52d5 ===\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067unicorn\u3092\u30c7\u30fc\u30e2\u30f3\u3067\u8d77\u52d5\u3059\u308b\u3002--path \u3067\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u304crails\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u306a\u308b\u3002\n<pre>\nunicorn_rails -c config/unicorn.rb -E production -D --path /redmine\n</pre>\n\u6b62\u3081\u308b\u5834\u5408\u306f\n<pre>\nkill -9 `cat /var/run/unicorn.pid`\n</pre>\n\n=== \u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a ===\n/etc/rc.conf \u306b\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u8ffd\u52a0\n<pre>\nredmine_enable=\"YES\"\n</pre>\n/etc/local/etc/rc.d/redmine\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\n<pre>\n#!/bin/sh\n\n# $FreeBSD: branches/2018Q2/www/redmine/files/redmine.in 430493 2017-01-03 18:25\n:44Z swills $\n\n# PROVIDE: redmine\n# REQUIRE: LOGIN\n# KEYWORD: shutdown\n\n# Add the following line to /etc/rc.conf[.local] to enable redmine\n#\n# redmine_enable (bool):        Set to \"NO\" by default.\n#                               Set it to \"YES\" to enable redmine.\n# redmine_flags (str):          Custom additional arguments to be passed\n#                               to redmine.\n# redmine_user (str):           User account to run thin with. (default: www)\n# redmine_group (str):          Group to run thin with. (default: www)\n\n. /etc/rc.subr\n\nname=\"redmine\"\nrcvar=redmine_enable\nload_rc_config $name\n\nextra_commands=\"status\"\nstart_cmd=redmine_start\nstop_cmd=redmine_stop\nstatus_cmd=redmine_status\n\nredmine_enable=${redmine_enable:-\"NO\"}\nredmine_base=${redmine_base:-\"/usr/local/www/redmine\"}\nif [ -r /var/run/unicorn.pid ]; then\n        redmine_pid=`cat /var/run/unicorn.pid`\nfi\n\nPATH=${PATH}:/usr/local/bin\n\nredmine_start()\n{\n        cd ${redmine_base} && bundle exec unicorn_rails -c config/unicorn.rb -E\nproduction -D --path /redmine\n        echo \"${name} started\"\n}\n\nredmine_stop()\n{\n        if [ \"x\" == \"x${redmine_pid}\" ]; then\n                echo \"${name} not running?\"\n        else\n                kill -9 ${redmine_pid}\n                rm /var/run/unicorn.pid\n                echo \"${name} stoped\"\n        fi\n}\n\nredmine_status()\n{\n        if [ \"x\" == \"x${redmine_pid}\" ]; then\n                echo \"${name} is not running.\"\n        else\n                echo \"${name} is running as pid ${redmine_pid}.\"\n        fi\n}\n\nrun_rc_command \"$1\"\n</pre>\n\n== nginx\u306e\u8a2d\u5b9a ==\n/usr/local/etc/nginx/nginx.conf \u304cnginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3002<br>\nhttp\u30d6\u30ed\u30c3\u30af\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u3001unicorn\u306e\u30bd\u30b1\u30c3\u30c8\u3068\u9023\u643a\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002\n<pre>\nupstream redmine{\n   server unix:/var/run/unicorn.sock;\n}\n</pre>\n\u3053\u3053\u3067\u6307\u5b9a\u3059\u308b\u30d1\u30b9\u306funicorn\u306e\u8a2d\u5b9a\u3067\u4f5c\u3063\u305fsock\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3059\u308b\u3002\n\nserver \u30d6\u30ed\u30c3\u30af\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u3001redmine\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u6307\u5b9a\u3059\u308b\u3002\n<pre>\n location /redmine/ {\n            if (-f $request_filename) { break; }\n            proxy_set_header X-Real-IP $remote_addr;\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n            proxy_set_header Host $http_host;\n            proxy_pass http://redmine;\n        }\n</pre>\n\n\u3064\u3044\u3067\u306bbasic\u8a8d\u8a3c\u3082\u304b\u3051\u3066\u304a\u304f\u3002<br>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 /usr/local/etc/nginx/.htaccess \u306b\u8a8d\u8a3c\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<br>\napache\u3092\u3044\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001ports\u304b\u3089 htpasswd.py\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\n<pre>\ncd  /usr/ports/security/py-htpasswd\nmake install\n</pre>\n.htpasswd\u3092\u4f5c\u6210\u3059\u308b\u3002\n<pre>\nhtpasswd.py -c -b /usr/local/etc/nginx/.htaccess username password\n</pre>\n\u3055\u3063\u304d\u66f8\u3044\u305flocation\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3059\u308b\u3002\n<pre>\n        auth_basic \"Restricted\";\n        auth_basic_user_file /usr/local/etc/nginx/.htaccess;\n</pre>\n\n\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089nginx\u3092\u8d77\u52d5\u3059\u308b\u3002\n<pre>\nnginx\n</pre>\n\u3059\u3067\u306b\u52d5\u3044\u3066\u3044\u308b\u306a\u3089\u518d\u8d77\u52d5\u3002\n<pre>\nnginx -s reload\n</pre>"
                    }
                ]
            },
            "129": {
                "pageid": 129,
                "ns": 0,
                "title": "Scribus",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "[[Category:Scribus]]\n\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eDTP\u30bd\u30d5\u30c8\u3002\n= \u4f5c\u696d\u8a18\u9332 =\n* [[Install(Scribus)|\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb]]"
                    }
                ]
            }
        }
    }
}