{"id":343790,"date":"2023-01-11T09:04:05","date_gmt":"2023-01-11T09:04:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=343790"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=343790","title":{"rendered":"<span>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Redmine 5.0.4 \u0432 jail \u043d\u0430 FreeBSD 13.1<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0423 Redmine \u0438 FreeBSD \u0442\u0440\u0443\u0434\u043d\u044b\u0435 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 Redmine \u0432 \u043f\u0430\u043a\u0435\u0442\u0430\u0445 FreeBSD \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u0430 \u0432 \u043f\u043e\u0440\u0442\u0430\u0445 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438, \u0432\u043e\u0437\u043d\u044f \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e. \u041d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0432 \u0441\u0435\u0442\u0438 \u0433\u0430\u0439\u0434\u044b \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 redmine \u043d\u0430 FreeBSD \u0434\u0430\u0432\u043d\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u0438. \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0437\u0430\u0441\u0443\u0447\u0438\u0442\u044c \u0440\u0443\u043a\u0430\u0432\u0430 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0431 \u0438 \u043e\u0448\u0438\u0431\u043e\u043a. \u0423\u0441\u043f\u0435\u0448\u043d\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u0435\u0439\u0441 \u0441\u0442\u0430\u043b \u043d\u0435 \u0441\u0440\u0430\u0437\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438 \u0440\u0435\u0448\u0438\u043b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0445\u043e\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u044e, \u0447\u0442\u043e \u0446\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430 &#8212; \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f, \u0430 \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u043d\u0430\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u0433\u043e-\u0442\u043e \u0442\u043e\u043c\u0443, \u0447\u0435\u0433\u043e \u043e\u043d \u0440\u0430\u043d\u044c\u0448\u0435 \u043d\u0435 \u0437\u043d\u0430\u043b.<\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432 \u0434\u0436\u0435\u0439\u043b\u0435 \u0432\u0441\u0435 \u0434\u0435\u043b\u0430\u043b\u043e\u0441\u044c \u043e\u0442 root, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 redmine \u0432 \u043d\u0435\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442 \u0438 \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u0434\u0436\u0435\u0439\u043b:<\/p>\n<pre><code>zfs create -o mountpoint=\/jails zroot\/jails zfs create zroot\/jails\/redmine bsdinstall jail \/jails\/redmine<\/code><\/pre>\n<p>\u0412 \/etc\/jail.conf \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c (\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 IP-\u0430\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0438)<\/p>\n<p><code>redmine {<br \/>host.hostname = \"redmine\";<br \/>path = \"\/jails\/redmine\/\";<br \/>interface = \"wlan0\";<br \/>ip4.addr = 192.168.20.203;<br \/>mount.devfs;<br \/>devfs_ruleset = 4;<br \/>exec.start = \"\/bin\/sh \/etc\/rc\";<br \/>exec.stop = \"\/bin\/sh \/etc\/rc.shutdown\";<br \/>}<\/code><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0436\u0435\u0439\u043b, \u043b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 JID.<\/p>\n<pre><code>service jail start redmine jls<\/code><\/pre>\n<p>JID IP Address Hostname Path<br \/>1 192.168.20.203 redmine \/jails\/redmine<\/p>\n<pre><code>jexec 1 \/bin\/sh<\/code><\/pre>\n<p>\u0418\u0442\u0430\u043a, \u043c\u044b \u043d\u0430 \u043c\u0435\u0441\u0442\u0435.<\/p>\n<pre><code>pkg update<\/code><\/pre>\n<p><code>The package management tool is not yet installed on your system.<br \/>Do you want to fetch and install it now? [y\/N]: y<br \/>Bootstrapping pkg from pkg+http:\/\/pkg.FreeBSD.org\/FreeBSD:13:amd64\/quarterly, please wait...<br \/>Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done<br \/>[redmine] Installing pkg-1.18.4...<br \/>[redmine] Extracting pkg-1.18.4: 100%<br \/>Updating FreeBSD repository catalogue...<br \/>[redmine] Fetching meta.conf: 100% 163 B 0.2kB\/s 00:01<br \/>[redmine] Fetching packagesite.pkg: 100% 6 MiB 3.4MB\/s 00:02<br \/>Processing entries: 100%<br \/>FreeBSD repository update completed. 32318 packages processed.<br \/>All repositories are up to date.<\/code><\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0437\u0430 \u043f\u0440\u0435\u043c\u0443\u0434\u0440\u043e\u0441\u0442\u044f\u043c\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442 redmine.org<\/p>\n<p><a href=\"https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall\" rel=\"noopener noreferrer nofollow\">https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall<\/a><\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0442\u0430\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0443\u0436\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0435\u0435.<\/p>\n<pre><code>fetch https:\/\/www.redmine.org\/releases\/redmine-5.0.4.tar.gz<\/code><\/pre>\n<p>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c, \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443, \u0433\u0434\u0435 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u0443\u0441\u0442\u044c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \/opt\/redmine<\/p>\n<pre><code>mkdir \/opt tar xfvz redmine-5.0.4.tar.gz -C \/opt mv \/opt\/redmine-5.0.4\/ \/opt\/redmine<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u0443\u0435\u043c ruby \u0438 ruby-gems:<\/p>\n<pre><code>pkg install ruby30-gems<\/code><\/pre>\n<p>\u0427\u0442\u043e \u043d\u0430\u0441\u0447\u0435\u0442 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0434\u0436\u0435\u0439\u043b\u0435? \u041b\u0438\u0447\u043d\u043e \u044f \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043d\u0435 \u0441\u0430\u043c\u043e\u043c \u043a\u0440\u0443\u0442\u043e\u043c \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u0435\u0440\u0436\u0443 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0436\u0435\u0439\u043b\u043e\u0432 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 Home Assistant, Nextcloud, \u0442\u043e\u0442 \u0436\u0435 Redmine \u0438 \u0440\u044f\u0434 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u0414\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0434\u0436\u0435\u0439\u043b\u0435 \u0441\u0432\u043e\u044e \u0421\u0423\u0411\u0414 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u0437\u043e\u043e\u043f\u0430\u0440\u043a \u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u0445\u043e\u0441\u0442. \u0418\u0442\u0430\u043a, \u043f\u0443\u0441\u0442\u044c \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0432\u0435\u0431-\u043f\u0440\u043e\u043a\u0441\u0438 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435, \u0430\u0434\u0440\u0435\u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 <em>192.168.20.138<\/em>. \u0410 \u043f\u043e\u0441\u0435\u043c\u0443, \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0411\u0414 \u0432\u044b\u043d\u043e\u0441\u0438\u043c \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0411\u0414 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u043a, \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435\u00a0<a href=\"https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall\" rel=\"noopener noreferrer nofollow\">https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall<\/a>. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0411\u0414 \u043d\u0430 \u043f\u0440\u0438\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438.<\/p>\n<p>\u0414\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0413\u0430\u0443\u0441\u0441\u0430 \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0434\u043b\u044f \u044d\u0441\u0442\u0435\u0442\u043e\u0432 \u0438 \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0442 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u043e, \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0439, ImageMagic \u0438 GhostScript \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u043b.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0421\u0423\u0411\u0414 \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u0430 \u0438 \u0433\u043e\u0442\u043e\u0432\u0430 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u0443, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0448\u0430\u0433\u0443:<\/p>\n<pre><code>cd \/opt\/redmine gem install bundler<\/code><\/pre>\n<p>\u0415\u0449\u0435 \u0440\u0430\u0437 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0432 \/opt\/redmine\/config\/database.yml \u0432\u0441\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u043e\u0439 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043f\u043e\u0434\u043d\u044f\u043b\u0438, \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f\u0445 \u043e\u0442\u0441\u044e\u0434\u0430:\u00a0<a href=\"https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall\" rel=\"noopener noreferrer nofollow\">https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall<\/a><\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>cat database.yml<\/code><\/pre>\n<p><code>production:<br \/>adapter: postgresql<br \/>database: redmine<br \/>host: 192.168.20.138<br \/>username: redmine<br \/>password: \"xxxxxx\"<br \/>encoding: utf8<\/code><\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<br \/>\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435:<\/p>\n<pre><code>pkg install postgresql13-client<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432\u0430\u0436\u043d\u0443\u044e \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043a\u0430\u0447\u0430\u0435\u0442 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 rails \u0438 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 gem-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432 \u0444\u0430\u0439\u043b\u0435 Gemfile.<\/p>\n<pre><code>bundle install --without development test rmagick<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0432 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u043f\u0440\u0435\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 ImageMagic \u0438 GhostScript.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 coockie, \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u0439.<\/p>\n<pre><code>bundle exec rake generate_secret_token<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0440\u0430\u043d\u0435\u0435 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u043b\u0438 \u0431\u0430\u0437\u0443 \u0441 \u043d\u0443\u043b\u044f. \u041f\u043e\u0441\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u044f\u0437\u044b\u043a, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441 \u0432\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f Redmine.<\/p>\n<pre><code>RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake redmine:load_default_data<\/code><\/pre>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435. \u0412\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u0437\u043e\u043e\u043f\u0430\u0440\u043a, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 ruby on rails, \u0447\u0435\u043c-\u0442\u043e \u043d\u0430\u0434\u043e \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e http. &#171;\u0418\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438&#187; \u0432 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0442\u043e\u043b\u044c\u043a\u043e web-\u0441\u0435\u0440\u0432\u0435\u0440 puma. \u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u044b\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u0441\u0438\u0439, \u0447\u0442\u043e \u0443 Redmine \u0441\u043f\u043b\u043e\u0448\u044c \u0438 \u0440\u044f\u0434\u043e\u043c. \u041f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 puma \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 test, \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u044b\u0441\u043a\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 \/opt\/regmine\/Gemfile \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<p><code>gem 'puma', '&lt; 6.0.0'<\/code><\/p>\n<p>\u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0435\u0435 \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0430\u0439\u043b\u0430, \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0432 \u043f\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u043e\u0439<\/p>\n<p><code>gem 'bundler', '>= 1.12.0'<\/code><\/p>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre><code>bundle install --without development test rmagick<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/p>\n<pre><code>bundle exec rails server -u puma -e production<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435\u0447\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<p>=> Booting Puma=> Rails 6.1.7 application starting in production=> Run <code>bin\/rails server --help<\/code> for more startup optionsPuma starting in single mode&#8230;<\/p>\n<ul>\n<li>\n<p>Puma version: 5.6.5 (ruby 3.0.5-p211) (&#171;Birdie&#8217;s Version&#187;)<\/p>\n<\/li>\n<li>\n<p>Min threads: 0<\/p>\n<\/li>\n<li>\n<p>Max threads: 5<\/p>\n<\/li>\n<li>\n<p>Environment: production<\/p>\n<\/li>\n<li>\n<p>PID: 14769<\/p>\n<\/li>\n<li>\n<p>Listening on\u00a0<a href=\"http:\/\/192.168.20.203:3000\/\" rel=\"noopener noreferrer nofollow\">http:\/\/192.168.20.203:3000<\/a>Use Ctrl-C to stop<\/p>\n<\/li>\n<\/ul>\n<p>\u0410 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u043d\u0435\u0442 \u0434\u0435\u0432\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0447\u0438\u0441\u0442\u044b\u0439 Redmine.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Ctrl-C \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0440\u0430\u0437\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u044d\u0442\u0443 \u0441\u0430\u043c\u0443\u044e \u043f\u0443\u043c\u0443 \u0434\u0435\u043c\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0449\u0435 \u043e\u0434\u043d\u043e gem-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0430\u0434\u043e \u0443\u0437\u0430\u043a\u043e\u043d\u0438\u0442\u044c \u0432 GemFile, \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0432 \u043d\u0430\u0434 \u0441\u0442\u0440\u043e\u043a\u043e\u0439<\/p>\n<p><code>gem 'puma', '&lt; 6.0.0'<\/code><\/p>\n<p>\u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<p><code>gem 'puma-daemon', require: false<\/code><\/p>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0435\u0449\u0435 \u0440\u0430\u0437 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0443\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0435 \u0437\u0430\u043a\u043b\u0438\u043d\u0430\u043d\u0438\u0435:<\/p>\n<pre><code>bundle install --without development test rmagick<\/code><\/pre>\n<p>\u041d\u043e \u044d\u0442\u043e \u0435\u0449\u0435 \u043d\u0435 \u0432\u0441\u0435. \u0427\u0442\u043e\u0431\u044b \u0434\u0435\u043c\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, \u043d\u0443\u0436\u043d\u043e \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \/opt\/redmine\/config \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b puma.rb, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p><code>#!\/usr\/bin\/env puma<br \/>application_path = '\/opt\/redmine'<br \/>directory application_path<br \/>environment 'production'<br \/>require 'puma\/daemon'<br \/>daemonize true<br \/>port 3000<br \/>workers 3<br \/>threads 2,3<br \/>pidfile \"#{application_path}\/tmp\/pids\/puma.pid\"<br \/>state_path \"#{application_path}\/tmp\/pids\/puma.state\"<br \/>stdout_redirect \"#{application_path}\/log\/puma.stdout.log\", \"#{application_path}\/log\/puma.stderr.log\"<\/code><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0449\u0435 \u0440\u0430\u0437:<\/p>\n<pre><code>bundle exec rails server -u puma -e production<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u0447\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<p><code>=> Booting Puma<br \/>=> Rails 6.1.7 application starting in production<br \/>=> Run `bin\/rails server --help` for more startup options<br \/>[14931] Puma starting in cluster mode...<br \/>[14931] * Puma version: 5.6.5 (ruby 3.0.5-p211) (\"Birdie's Version\")<br \/>[14931] * Min threads: 2<br \/>[14931] * Max threads: 3<br \/>[14931] * Environment: production<br \/>[14931] * Master PID: 14931<br \/>[14931] * Workers: 3<br \/>[14931] * Restarts: (\u2714) hot (\u2714) phased<br \/>[14931] * Listening on\u00a0http:\/\/192.168.20.203:3000<\/code><\/p>\n<p>\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0435\u043c\u043e\u043d\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre><code>bundle exec pumactl --state \/opt\/redmine\/tmp\/pids\/puma.state stop<\/code><\/pre>\n<p>\u0421 \u043e\u043f\u0446\u0438\u044f\u043c\u0438 start \u0438 restart \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a \u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0412\u0443\u0430\u043b\u044f. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0441 \u043d\u0443\u043b\u044f \u0434\u0436\u0435\u0439\u043b \u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c Redmine 5.0.4, \u0441\u0435\u0440\u0432\u0435\u0440 \u0411\u0414 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0436\u0438\u0432\u0435\u0442 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u0434\u0436\u0435\u0439\u043b\u0430. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0438\u0447\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c MySQL \u0438\u043b\u0438 MariaDB \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0436\u0435\u0439\u043b\u0430, \u0430 \u0432\u043e\u0442 Postgres \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0430\u0441\u0438\u043b\u0438\u044f \u043d\u0430\u0434 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435 \u043b\u044e\u0431\u0438\u0442, \u0432 \u043a\u043b\u0435\u0442\u043a\u0435 \u0435\u043c\u0443 \u0442\u043e\u0441\u043a\u043b\u0438\u0432\u043e.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u0430\u0431\u043e\u0442\u0438\u0442\u044c\u0441\u044f \u043e\u0442\u0434\u0430\u0447\u0435\u0439 \u0420\u0435\u0434\u043c\u0430\u0439\u043d\u0430 \u043d\u0430\u0440\u0443\u0436\u0443 \u0447\u0435\u0440\u0435\u0437 reverse proxy. \u041d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/709990\/\"> https:\/\/habr.com\/ru\/post\/709990\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0423 Redmine \u0438 FreeBSD \u0442\u0440\u0443\u0434\u043d\u044b\u0435 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 Redmine \u0432 \u043f\u0430\u043a\u0435\u0442\u0430\u0445 FreeBSD \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u0430 \u0432 \u043f\u043e\u0440\u0442\u0430\u0445 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438, \u0432\u043e\u0437\u043d\u044f \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e. \u041d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0432 \u0441\u0435\u0442\u0438 \u0433\u0430\u0439\u0434\u044b \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 redmine \u043d\u0430 FreeBSD \u0434\u0430\u0432\u043d\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u0438. \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0437\u0430\u0441\u0443\u0447\u0438\u0442\u044c \u0440\u0443\u043a\u0430\u0432\u0430 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0431 \u0438 \u043e\u0448\u0438\u0431\u043e\u043a. \u0423\u0441\u043f\u0435\u0448\u043d\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u0435\u0439\u0441 \u0441\u0442\u0430\u043b \u043d\u0435 \u0441\u0440\u0430\u0437\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438 \u0440\u0435\u0448\u0438\u043b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0445\u043e\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u044e, \u0447\u0442\u043e \u0446\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430 &#8212; \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f, \u0430 \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u043d\u0430\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u0433\u043e-\u0442\u043e \u0442\u043e\u043c\u0443, \u0447\u0435\u0433\u043e \u043e\u043d \u0440\u0430\u043d\u044c\u0448\u0435 \u043d\u0435 \u0437\u043d\u0430\u043b.<\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432 \u0434\u0436\u0435\u0439\u043b\u0435 \u0432\u0441\u0435 \u0434\u0435\u043b\u0430\u043b\u043e\u0441\u044c \u043e\u0442 root, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 redmine \u0432 \u043d\u0435\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442 \u0438 \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u0434\u0436\u0435\u0439\u043b:<\/p>\n<pre><code>zfs create -o mountpoint=\/jails zroot\/jails zfs create zroot\/jails\/redmine bsdinstall jail \/jails\/redmine<\/code><\/pre>\n<p>\u0412 \/etc\/jail.conf \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c (\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 IP-\u0430\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0438)<\/p>\n<p><code>redmine {<br \/>host.hostname = \"redmine\";<br \/>path = \"\/jails\/redmine\/\";<br \/>interface = \"wlan0\";<br \/>ip4.addr = 192.168.20.203;<br \/>mount.devfs;<br \/>devfs_ruleset = 4;<br \/>exec.start = \"\/bin\/sh \/etc\/rc\";<br \/>exec.stop = \"\/bin\/sh \/etc\/rc.shutdown\";<br \/>}<\/code><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0436\u0435\u0439\u043b, \u043b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 JID.<\/p>\n<pre><code>service jail start redmine jls<\/code><\/pre>\n<p>JID IP Address Hostname Path<br \/>1 192.168.20.203 redmine \/jails\/redmine<\/p>\n<pre><code>jexec 1 \/bin\/sh<\/code><\/pre>\n<p>\u0418\u0442\u0430\u043a, \u043c\u044b \u043d\u0430 \u043c\u0435\u0441\u0442\u0435.<\/p>\n<pre><code>pkg update<\/code><\/pre>\n<p><code>The package management tool is not yet installed on your system.<br \/>Do you want to fetch and install it now? [y\/N]: y<br \/>Bootstrapping pkg from pkg+http:\/\/pkg.FreeBSD.org\/FreeBSD:13:amd64\/quarterly, please wait...<br \/>Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done<br \/>[redmine] Installing pkg-1.18.4...<br \/>[redmine] Extracting pkg-1.18.4: 100%<br \/>Updating FreeBSD repository catalogue...<br \/>[redmine] Fetching meta.conf: 100% 163 B 0.2kB\/s 00:01<br \/>[redmine] Fetching packagesite.pkg: 100% 6 MiB 3.4MB\/s 00:02<br \/>Processing entries: 100%<br \/>FreeBSD repository update completed. 32318 packages processed.<br \/>All repositories are up to date.<\/code><\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0437\u0430 \u043f\u0440\u0435\u043c\u0443\u0434\u0440\u043e\u0441\u0442\u044f\u043c\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442 redmine.org<\/p>\n<p><a href=\"https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall\" rel=\"noopener noreferrer nofollow\">https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall<\/a><\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0442\u0430\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0443\u0436\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0435\u0435.<\/p>\n<pre><code>fetch https:\/\/www.redmine.org\/releases\/redmine-5.0.4.tar.gz<\/code><\/pre>\n<p>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c, \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443, \u0433\u0434\u0435 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u0443\u0441\u0442\u044c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \/opt\/redmine<\/p>\n<pre><code>mkdir \/opt tar xfvz redmine-5.0.4.tar.gz -C \/opt mv \/opt\/redmine-5.0.4\/ \/opt\/redmine<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u0443\u0435\u043c ruby \u0438 ruby-gems:<\/p>\n<pre><code>pkg install ruby30-gems<\/code><\/pre>\n<p>\u0427\u0442\u043e \u043d\u0430\u0441\u0447\u0435\u0442 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0434\u0436\u0435\u0439\u043b\u0435? \u041b\u0438\u0447\u043d\u043e \u044f \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043d\u0435 \u0441\u0430\u043c\u043e\u043c \u043a\u0440\u0443\u0442\u043e\u043c \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u0435\u0440\u0436\u0443 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0436\u0435\u0439\u043b\u043e\u0432 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438, \u0441\u0440\u0435\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 Home Assistant, Nextcloud, \u0442\u043e\u0442 \u0436\u0435 Redmine \u0438 \u0440\u044f\u0434 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u0414\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0434\u0436\u0435\u0439\u043b\u0435 \u0441\u0432\u043e\u044e \u0421\u0423\u0411\u0414 \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u0437\u043e\u043e\u043f\u0430\u0440\u043a \u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u0445\u043e\u0441\u0442. \u0418\u0442\u0430\u043a, \u043f\u0443\u0441\u0442\u044c \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0432\u0435\u0431-\u043f\u0440\u043e\u043a\u0441\u0438 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430 \u0445\u043e\u0441\u0442\u0435, \u0430\u0434\u0440\u0435\u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 <em>192.168.20.138<\/em>. \u0410 \u043f\u043e\u0441\u0435\u043c\u0443, \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0411\u0414 \u0432\u044b\u043d\u043e\u0441\u0438\u043c \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0411\u0414 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u043a, \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435\u00a0<a href=\"https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall\" rel=\"noopener noreferrer nofollow\">https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall<\/a>. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0411\u0414 \u043d\u0430 \u043f\u0440\u0438\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438.<\/p>\n<p>\u0414\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0413\u0430\u0443\u0441\u0441\u0430 \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0434\u043b\u044f \u044d\u0441\u0442\u0435\u0442\u043e\u0432 \u0438 \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0442 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u043e, \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0439, ImageMagic \u0438 GhostScript \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u043b.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0421\u0423\u0411\u0414 \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u0430 \u0438 \u0433\u043e\u0442\u043e\u0432\u0430 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u0443, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0448\u0430\u0433\u0443:<\/p>\n<pre><code>cd \/opt\/redmine gem install bundler<\/code><\/pre>\n<p>\u0415\u0449\u0435 \u0440\u0430\u0437 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0432 \/opt\/redmine\/config\/database.yml \u0432\u0441\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u043e\u0439 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043f\u043e\u0434\u043d\u044f\u043b\u0438, \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f\u0445 \u043e\u0442\u0441\u044e\u0434\u0430:\u00a0<a href=\"https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall\" rel=\"noopener noreferrer nofollow\">https:\/\/www.redmine.org\/projects\/redmine\/wiki\/RedmineInstall<\/a><\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>cat database.yml<\/code><\/pre>\n<p><code>production:<br \/>adapter: postgresql<br \/>database: redmine<br \/>host: 192.168.20.138<br \/>username: redmine<br \/>password: \"xxxxxx\"<br \/>encoding: utf8<\/code><\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<br \/>\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435:<\/p>\n<pre><code>pkg install postgresql13-client<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432\u0430\u0436\u043d\u0443\u044e \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043a\u0430\u0447\u0430\u0435\u0442 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 rails \u0438 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 gem-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432 \u0444\u0430\u0439\u043b\u0435 Gemfile.<\/p>\n<pre><code>bundle install --without development test rmagick<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0432 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u043f\u0440\u0435\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 ImageMagic \u0438 GhostScript.<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 coockie, \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u0439.<\/p>\n<pre><code>bundle exec rake generate_secret_token<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0440\u0430\u043d\u0435\u0435 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u043b\u0438 \u0431\u0430\u0437\u0443 \u0441 \u043d\u0443\u043b\u044f. \u041f\u043e\u0441\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u044f\u0437\u044b\u043a, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441 \u0432\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f Redmine.<\/p>\n<pre><code>RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake redmine:load_default_data<\/code><\/pre>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435. \u0412\u0435\u0441\u044c \u044d\u0442\u043e\u0442 \u0437\u043e\u043e\u043f\u0430\u0440\u043a, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 ruby on rails, \u0447\u0435\u043c-\u0442\u043e \u043d\u0430\u0434\u043e \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e http. &#171;\u0418\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438&#187; \u0432 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0442\u043e\u043b\u044c\u043a\u043e web-\u0441\u0435\u0440\u0432\u0435\u0440 puma. \u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u044b\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0438 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u0441\u0438\u0439, \u0447\u0442\u043e \u0443 Redmine \u0441\u043f\u043b\u043e\u0448\u044c \u0438 \u0440\u044f\u0434\u043e\u043c. \u041f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 puma \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 test, \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0434\u043e \u0440\u0430\u0437\u044b\u0441\u043a\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 \/opt\/regmine\/Gemfile \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<p><code>gem 'puma', '&lt; 6.0.0'<\/code><\/p>\n<p>\u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0435\u0435 \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0430\u0439\u043b\u0430, \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0432 \u043f\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u043e\u0439<\/p>\n<p><code>gem 'bundler', '>= 1.12.0'<\/code><\/p>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre><code>bundle install --without development test rmagick<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/p>\n<pre><code>bundle exec rails server -u puma -e production<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0435\u0447\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<p>=> Booting Puma=> Rails 6.1.7 application starting in production=> Run <code>bin\/rails server --help<\/code> for more startup optionsPuma starting in single mode&#8230;<\/p>\n<ul>\n<li>\n<p>Puma version: 5.6.5 (ruby 3.0.5-p211) (&#171;Birdie&#8217;s Version&#187;)<\/p>\n<\/li>\n<li>\n<p>Min threads: 0<\/p>\n<\/li>\n<li>\n<p>Max threads: 5<\/p>\n<\/li>\n<li>\n<p>Environment: production<\/p>\n<\/li>\n<li>\n<p>PID: 14769<\/p>\n<\/li>\n<li>\n<p>Listening on\u00a0<a href=\"http:\/\/192.168.20.203:3000\/\" rel=\"noopener noreferrer nofollow\">http:\/\/192.168.20.203:3000<\/a>Use Ctrl-C to stop<\/p>\n<\/li>\n<\/ul>\n<p>\u0410 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u043d\u0435\u0442 \u0434\u0435\u0432\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0447\u0438\u0441\u0442\u044b\u0439 Redmine.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Ctrl-C \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0440\u0430\u0437\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u044d\u0442\u0443 \u0441\u0430\u043c\u0443\u044e \u043f\u0443\u043c\u0443 \u0434\u0435\u043c\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0449\u0435 \u043e\u0434\u043d\u043e gem-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0430\u0434\u043e \u0443\u0437\u0430\u043a\u043e\u043d\u0438\u0442\u044c \u0432 GemFile, \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0432 \u043d\u0430\u0434 \u0441\u0442\u0440\u043e\u043a\u043e\u0439<\/p>\n<p><code>gem 'puma', '&lt; 6.0.0'<\/code><\/p>\n<p>\u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<p><code>gem 'puma-daemon', require: false<\/code><\/p>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0435\u0449\u0435 \u0440\u0430\u0437 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0443\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0435 \u0437\u0430\u043a\u043b\u0438\u043d\u0430\u043d\u0438\u0435:<\/p>\n<pre><code>bundle install --without development test rmagick<\/code><\/pre>\n<p>\u041d\u043e \u044d\u0442\u043e \u0435\u0449\u0435 \u043d\u0435 \u0432\u0441\u0435. \u0427\u0442\u043e\u0431\u044b \u0434\u0435\u043c\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, \u043d\u0443\u0436\u043d\u043e \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \/opt\/redmine\/config \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b puma.rb, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p><code>#!\/usr\/bin\/env puma<br \/>application_path = '\/opt\/redmine'<br \/>directory application_path<br \/>environment 'production'<br \/>require 'puma\/daemon'<br \/>daemonize true<br \/>port 3000<br \/>workers 3<br \/>threads 2,3<br \/>pidfile \"#{application_path}\/tmp\/pids\/puma.pid\"<br \/>state_path \"#{application_path}\/tmp\/pids\/puma.state\"<br \/>stdout_redirect \"#{application_path}\/log\/puma.stdout.log\", \"#{application_path}\/log\/puma.stderr.log\"<\/code><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0449\u0435 \u0440\u0430\u0437:<\/p>\n<pre><code>bundle exec rails server -u puma -e production<\/code><\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u0447\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<p><code>=> Booting Puma<br \/>=> Rails 6.1.7 application starting in production<br \/>=> Run `bin\/rails server --help` for more startup options<br \/>[14931] Puma starting in cluster mode...<br \/>[14931] * Puma version: 5.6.5 (ruby 3.0.5-p211) (\"Birdie's Version\")<br \/>[14931] * Min threads: 2<br \/>[14931] * Max threads: 3<br \/>[14931] * Environment: production<br \/>[14931] * Master PID: 14931<br \/>[14931] * Workers: 3<br \/>[14931] * Restarts: (\u2714) hot (\u2714) phased<br \/>[14931] * Listening on\u00a0http:\/\/192.168.20.203:3000<\/code><\/p>\n<p>\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0435\u043c\u043e\u043d\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre><code>bundle exec pumactl --state \/opt\/redmine\/tmp\/pids\/puma.state stop<\/code><\/pre>\n<p>\u0421 \u043e\u043f\u0446\u0438\u044f\u043c\u0438 start \u0438 restart \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a \u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0412\u0443\u0430\u043b\u044f. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0441 \u043d\u0443\u043b\u044f \u0434\u0436\u0435\u0439\u043b \u0441 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c Redmine 5.0.4, \u0441\u0435\u0440\u0432\u0435\u0440 \u0411\u0414 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0436\u0438\u0432\u0435\u0442 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u0434\u0436\u0435\u0439\u043b\u0430. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0438\u0447\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c MySQL \u0438\u043b\u0438 MariaDB \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0436\u0435\u0439\u043b\u0430, \u0430 \u0432\u043e\u0442 Postgres \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0430\u0441\u0438\u043b\u0438\u044f \u043d\u0430\u0434 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435 \u043b\u044e\u0431\u0438\u0442, \u0432 \u043a\u043b\u0435\u0442\u043a\u0435 \u0435\u043c\u0443 \u0442\u043e\u0441\u043a\u043b\u0438\u0432\u043e.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u0430\u0431\u043e\u0442\u0438\u0442\u044c\u0441\u044f \u043e\u0442\u0434\u0430\u0447\u0435\u0439 \u0420\u0435\u0434\u043c\u0430\u0439\u043d\u0430 \u043d\u0430\u0440\u0443\u0436\u0443 \u0447\u0435\u0440\u0435\u0437 reverse proxy. \u041d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/709990\/\"> https:\/\/habr.com\/ru\/post\/709990\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-343790","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=343790"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343790\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=343790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=343790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=343790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}