{"id":275725,"date":"2016-03-09T12:33:02","date_gmt":"2016-03-09T09:33:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=275725"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=275725","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b GitLab + Redmine \u043d\u0430 Debian 8 jessie + Nginx \u2014 \u0427\u0430\u0441\u0442\u044c 1"},"content":{"rendered":"<br \/>\n<h2>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0422\u0430\u043a \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e GitHub \u0438\u043b\u0438 GitBucket. \u041e\u0441\u043d\u0430\u0432\u043d\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0432 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435 \u0432\u0435\u0440\u0441\u0438\u0439 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0431\u0438\u043d\u0430\u043d\u0440\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 psd, 3dsmax \u0438 \u0434\u0440\u0443\u0433\u0438\u0445. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0430, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0438\u043b\u0438 git Large Files System, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 GitHub. \u041d\u043e \u0432\u0437\u0432\u0435\u0441\u0438\u0432 \u0432\u0441\u0435 \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432 \u043a \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043c\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0441\u0432\u044f\u0437\u043a\u0435 GitLab + redmine. <\/p>\n<p>  \u042f \u043d\u0435 \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043c\u044b\u0441\u043b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b, \u044f \u043b\u0438\u0448\u044c \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0434\u043e\u0441\u0442\u043e\u0438\u043d\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438 \u043d\u0430\u0441 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0432\u044b\u0431\u043e\u0440.<br \/>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u043b\u044e\u0441\u044b GitLab:<\/p>\n<ul>\n<li>\u0421\u0432\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439.<\/li>\n<li>\u0422\u043e\u043d\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u0430\u0432.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 git lfs \u043f\u043e\u0447\u0442\u0438 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438.<\/li>\n<\/ul>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043e\u0431\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Open Source.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430<\/h2>\n<p>  \u0420\u0435\u0448\u0438\u043b \u043d\u0435 \u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u0441\u0435\u0445 \u043c\u0435\u043b\u043e\u0447\u0435\u0439, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0436\u0435 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u00ab\u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0432\u0438\u0436\u0443 \u043a\u043e\u043d\u0441\u043e\u043b\u044c Linux\u00bb \u043c\u043e\u0433 \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0441\u0435\u0431\u0435 \u0441\u0432\u044f\u0437\u043a\u0443 Redmine + GitLab.<\/p>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u043d\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 sudo, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c root \u043d\u0435 \u0435\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e. \u0410 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043e\u0442 root \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 GitLab:<\/p>\n<pre><code class=\"bash\">#\u0422\u0430\u043a\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 nano, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0433\u043e \u0432\u0434\u0440\u0443\u0433 \u043d\u0435\u0442. apt-get install nano sudo -y <\/code><\/pre>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c sudo, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"bash\">#\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043e\u0442\u0432\u0435\u0442\u0438\u0432 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438 \u0437\u0430\u0434\u0430\u0432 \u043f\u0430\u0440\u043e\u043b\u044c &lt;username&gt; # \u0422\u0430\u043c \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u043b\u044c\u0437\u0432\u0430\u0442\u0435\u043b\u044f root. \u041d\u0443\u0436\u043d\u043e \u043b\u0438\u0448\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. nano \/etc\/sudoers #\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f sudo su &lt;username&gt; <\/code><\/pre>\n<p>  <\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Redmine<\/h2>\n<p>  \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Nginx,Thin \u0438 MySQL. \u0415\u0441\u043b\u0438 \u043f\u043e \u0440\u0435\u043b\u0438\u0433\u0438\u043e\u0437\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 PostgreSQL, \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0434\u0430, \u044f \u0431\u0443\u0434\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0433\u0434\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0422\u0430\u043a\u0436\u0435 \u0432\u043c\u0435\u0441\u0442\u043e Thin \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Unicorn, \u043d\u043e \u043c\u044b \u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443:<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Nginx \u043d\u0430 \u0440\u043e\u043b\u044c \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get update sudo apt-get install nginx -y <\/code><\/pre>\n<p>  <\/p>\n<h3> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\"># \u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 MySql apt-get install mysql-server mysql-client libmysqlclient-dev # \u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 PostgreSQL apt-get install postgresql <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 MySql \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0441\u0443\u043f\u0435\u0440 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u0440\u0438\u0434\u0443\u043c\u0430\u0439\u0442\u0435 \u0438 \u0437\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0435\u0433\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043d\u044f \u043d\u0435\u0435.<\/p>\n<pre><code class=\"bash\"># \u0415\u0441\u043b\u0438 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d MySql mysql -uroot -p CREATE DATABASE redmine CHARACTER SET utf8; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost'; exit  # \u0415\u0441\u043b\u0438 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d PostgreSQL su postgres psql CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD 'password' NOINHERIT VALID UNTIL 'infinity'; CREATE DATABASE redmine WITH ENCODING='UTF8' OWNER=redmine TEMPLATE template0; \\q exit <\/code><\/pre>\n<p>  <\/p>\n<h3> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0430\u043c\u043e\u0433\u043e Redmine<\/h3>\n<p>  \u041d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0437\u0430\u0433\u0430\u043b\u043e\u0432\u043a\u0438 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438.<\/p>\n<pre><code class=\"bash\"># \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435: libmagickcore-dev libmagickwand-dev \u043f\u043e\u0442\u044f\u043d\u0443\u0442 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. \u0415\u0441\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u043d\u0435 \u0447\u0438\u0441\u0442\u043e\u0439 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435. apt-get install libmagickcore-dev libmagickwand-dev imagemagick build-essential <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0441\u0432\u0435\u0436\u0438\u0439 redmine. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u044d\u0442\u043e <a href=\"http:\/\/www.redmine.org\/projects\/redmine\/wiki\/Download\">3.2.0<\/a>. \u0421\u043a\u0430\u0447\u0430\u0435\u043c \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0432 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e.<\/p>\n<pre><code class=\"bash\">cd \/tmp mkdir redmine cd redmine wget http:\/\/www.redmine.org\/releases\/redmine-3.2.0.tar.gz tar -zxvf .\/redmine-3.2.0.tar.gz mv .\/redmine-3.2.0 \/usr\/local\/share\/redmine <\/code><\/pre>\n<p>  Redmine \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Ruby \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0435\u0433\u043e. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c.<\/p>\n<pre><code class=\"bash\"># \u041f\u043e\u0442\u044f\u043d\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. apt-get install ruby ruby-dev rubygems libruby # \u041d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f bundler \u044d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u043a apt-get \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f ruby gem install bundler <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c thin.<\/p>\n<pre><code class=\"bash\">nano \/usr\/local\/share\/redmine\/Gemfile #\u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c gem &quot;thin&quot; <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 gem&#8217;\u044b \u0434\u043b\u044f redmine:<\/p>\n<pre><code class=\"bash\">cd \/usr\/local\/share\/redmine #\u0417\u0410\u041c\u0415\u0422\u041a\u0410: \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 PostgreSQL \u0442\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 --without PostgreSQL \u043d\u0430 --without mysql bundle install --without development test postgresql sqlite <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c.<\/p>\n<pre><code class=\"bash\">cp config\/database.yml.example config\/database.yml mv public\/dispatch.fcgi.example public\/dispatch.fcgi nano config\/database.yml <\/code><\/pre>\n<p>  \u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c production \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443.<\/p>\n<p>  <i>\u0417\u0410\u041c\u0415\u0422\u041a\u0410: \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 PostgreSQL \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0432\u043d\u0438\u0437\u0443 \u0444\u0430\u0439\u043b\u0430 database.yml. \u0422\u0430\u043a\u0436\u0435 \u0430\u043a\u0443\u0440\u0430\u0442\u043d\u0435\u0439 \u0441 \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u0435\u0439 \u0442.\u043a *.yml \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442.<\/i><\/p>\n<pre><code class=\"bash\">production:   adapter: mysql2   database: redmine   host: localhost   username: redmine   password: &quot;&lt;password_Mysql_redmine_user&gt;&quot;   encoding: utf8 <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447:<\/p>\n<pre><code class=\"bash\">rake generate_secret_token <\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043e\u043a \u0431\u044b\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e. \u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043e\u043d \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 mysql2 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0433\u0435\u043c \u0434\u043b\u044f PostgreSQL, \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438\u0445:  <\/p>\n<pre><code class=\"bash\">gem install mysql2 # \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043b\u044e\u0447 rake generate_secret_token <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 2 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438. \u041f\u043e\u0441\u043b\u0435 2 \u043f\u043e\u043f\u0440\u043e\u0441\u044f\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u044f\u0437\u044b\u043a.<\/p>\n<pre><code class=\"bash\">RAILS_ENV=production rake db:migrate RAILS_ENV=production rake redmine:load_default_data # \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435: rake db:encrypt RAILS_ENV=production <\/code><\/pre>\n<p>  \u0418\u0442\u0430\u043a. Redmine \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0438 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0435\u0433\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c WebRic:<\/p>\n<pre><code class=\"bash\">ruby script\/rails server webrick -e production <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0443\u0432\u0438\u0434\u0435\u043b\u0438 INFO WEBrick::HTTPServer#start: pid=27676 port=3000 \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 <a href=\"http:\/\/hostname\">hostname<\/a>:3000 \u0432\u0441\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Ctrl+C.<\/p>\n<h3> \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Thin<\/h3>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b nginx \u043f\u043e\u043d\u0438\u043c\u0430\u043b ruby \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d thin:<\/p>\n<pre><code class=\"bash\">thin install #\u0442\u0430\u043a \u0436\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c adduser redmine chown -hR redmine:redmine \/usr\/local\/share\/redmine <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c thin:<\/p>\n<p>  nano \/etc\/thin\/redmine.yml<\/p>\n<pre><code class=\"bash\">pid: tmp\/pids\/thin.pid group: redmine wait: 30 timeout: 30 log: log\/thin.log max_conns: 1024 require: []  environment: production max_persistent_conns: 512 servers: 1 daemonize: true user: redmine socket: \/tmp\/thin.sock chdir: \/usr\/local\/share\/redmine <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c thin:<\/p>\n<pre><code class=\"bash\">\/etc\/init.d\/thin start # \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430\u0441\u0442\u044c nano \/usr\/local\/share\/redmine\/logs\/thin.0.log <\/code><\/pre>\n<p>  <\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Nginx<\/h3>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0445\u043e\u0441\u0442:<\/p>\n<pre><code class=\"bash\">nano \/etc\/nginx\/sites-available\/redmine.hostname.ru <\/code><\/pre>\n<p>  \u0412 \u0444\u0430\u0439\u043b \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u043f\u043e\u0434 \u0441\u0435\u0431\u044f:<\/p>\n<pre><code class=\"bash\"># \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c upstream \u043d\u0430 \u0441\u043e\u043a\u0435\u0442 \u043d\u0430\u0448\u0435\u0433\u043e &quot;\u0441\u043b\u0443\u0448\u0430\u044e\u0449\u0435\u0433\u043e&quot; \u0441\u0435\u0440\u0432\u0435\u0440\u0430 thin upstream thin_server {     server unix:\/tmp\/thin.0.sock; } # \u0412\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0438\u0434\u0438\u043c\u044b\u0439 \u0438\u0437 \u0432\u043d\u0435 server {     #\u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430     server_name redmine.hostname.ru           #\u041d\u0415 \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c HTTPS(SSL)     listen *:80;           #\u043b\u043e\u0433\u0438     access_log \/var\/log\/nginx\/redmine.mihanentalpo.me-access.log;     error_log  \/var\/log\/nginx\/redmine.mihanentalpo.me-error.log;       #\u041f\u0430\u043f\u043a\u0430 public \u0440\u0435\u0434\u043c\u0430\u0439\u043d\u0430     root \/usr\/local\/share\/redmine\/public;           # \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 location. \u041e\u043d \u043e\u0442\u0434\u0430\u0451\u0442 \u0432\u0441\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b &quot;\u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442&quot;, \u0430 \u0432\u0441\u0435     # \u043d\u0435\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0442 \u043d\u0430 \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f thin     location  \/ {                proxy_redirect off;         proxy_set_header Host redmine.mihanentalpo.me;         try_files $uri\/index.html $uri.html $uri @thin;     }       # \u0418\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u044b\u0439 Location \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043a\u0443\u0434\u0430 \u0441\u043e\u0441\u043b\u0430\u0442\u044c\u0441\u044f      location @thin     {         proxy_pass http:\/\/thin_server;     } }  <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0430\u0439\u0442 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c nginx:<\/p>\n<pre><code class=\"bash\">ln -s \/etc\/nginx\/sites-available\/redmine.hostname.ru \/etc\/nginx\/sites-enabled\/redmine.hostname.ru \/etc\/init.d\/nginx restart <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Redmine \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430. \u0410 \u0441\u0430\u043c \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0441\u0443 redmine.hostname.ru. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0435\u043c\u0443 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0430 \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u0438\u044c. \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435:<\/p>\n<pre><code class=\"bash\">chmod -R 0777 \/usr\/local\/share\/redmine\/tmp chmod -R 0777 \/usr\/local\/share\/redmine\/files <\/code><\/pre>\n<p>  \u0423 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043b\u043e\u0433\u0438\u043d admin \u0438 \u043f\u0430\u0440\u043e\u043b\u044c admin.<\/p>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 GitLab. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 ldap.<\/p>\n<p>  P.S.: \u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f, \u0436\u0434\u0443 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043a\u0440\u0438\u0442\u0438\u043a\u0438. \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u0431\u044b\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u043e\u0442\u043e\u0448\u0435\u043d \u0438 \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043a\u0440\u0443\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043a\u0430\u043a \u0425\u0430\u0431\u0440, \u0433\u0434\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0418\u0422-\u0448\u043d\u0438\u043a\u0438, \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0442\u043e\u043b\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u044f\u043a\u0438\u0435 \u043c\u0435\u043b\u043e\u0447\u0438. \u041c\u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u0431\u044b \u043b\u044e\u0431\u043e\u0439 \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0439 \u043c\u043e\u0433 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c Redmine + GitLab \u043d\u0430 \u0441\u0432\u043e\u0435\u043c VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u0435.       <\/p>\n<div class=\"clear\"><\/div>\n<p> \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:\/\/habrahabr.ru\/post\/278843\/\"> https:\/\/habrahabr.ru\/post\/278843\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h2>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0422\u0430\u043a \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u043b\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e GitHub \u0438\u043b\u0438 GitBucket. \u041e\u0441\u043d\u0430\u0432\u043d\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0432 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435 \u0432\u0435\u0440\u0441\u0438\u0439 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0431\u0438\u043d\u0430\u043d\u0440\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 psd, 3dsmax \u0438 \u0434\u0440\u0443\u0433\u0438\u0445. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0430, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u041e\u0431\u043b\u0430\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0438\u043b\u0438 git Large Files System, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 GitHub. \u041d\u043e \u0432\u0437\u0432\u0435\u0441\u0438\u0432 \u0432\u0441\u0435 \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432 \u043a \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043c\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0441\u0432\u044f\u0437\u043a\u0435 GitLab + redmine. <\/p>\n<p>  \u042f \u043d\u0435 \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043c\u044b\u0441\u043b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b, \u044f \u043b\u0438\u0448\u044c \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0434\u043e\u0441\u0442\u043e\u0438\u043d\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438 \u043d\u0430\u0441 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0432\u044b\u0431\u043e\u0440.<br \/>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u043b\u044e\u0441\u044b GitLab:<\/p>\n<ul>\n<li>\u0421\u0432\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439.<\/li>\n<li>\u0422\u043e\u043d\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u0430\u0432.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 git lfs \u043f\u043e\u0447\u0442\u0438 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438.<\/li>\n<\/ul>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043e\u0431\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Open Source.  <\/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-275725","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275725","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=275725"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275725\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}