<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[RATH服务化部署]]></title><description><![CDATA[<h2>本地：</h2>
<h4>下载代码</h4>
<pre><code>git clone https://github.com/Kanaries/Rath.git &amp;&amp; cd Rath
</code></pre>
<h4>在本地设置RATH客户端：</h4>
<pre><code>yarn install
yarn workspace rath-client build
</code></pre>
<h4>启动RATH客户端：</h4>
<pre><code>yarn workspace rath-client start
</code></pre>
<p dir="auto"><code>如果默认端口（localhost:3000）不可用，RATH将自动提示一个新的端口建议。输入y并按下Enter键启动RATH。</code></p>
<h2>docker</h2>
<h4>dockerfile</h4>
<pre><code>FROM ubuntu:20.04
USER root
RUN apt-get update &amp;&amp; apt-get install supervisor nginx vim net-tools  curl gnupg2 -y

RUN curl -s https://deb.nodesource.com/setup_16.x | bash
RUN apt-get update &amp;&amp; apt-get install nodejs -y


RUN  apt-get remove cmdtest
RUN  apt-get remove yarn

RUN  curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg |  apt-key add -
RUN  echo "deb https://dl.yarnpkg.com/debian/ stable main" |  tee /etc/apt/sources.list.d/yarn.list
RUN  apt-get update &amp;&amp; apt-get install yarn -y

ADD Rath /var/www/html/Rath
WORKDIR /var/www/html/Rath
RUN node -v
RUN yarn install
RUN yarn workspace rath-client build
#RUN yarn workspace rath-client start

ADD supervisord.conf /etc/supervisor/conf.d/
ENTRYPOINT supervisord -c /etc/supervisor/supervisord.conf
                                                          
</code></pre>
<h4>supervisord配置</h4>
<pre><code>[supervisord]
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
pidfile=/run/supervisord.pid


[program:rath]
command=yarn workspace rath-client start
stdout_logfile=/var/log/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/var/log/stderr
stderr_logfile_maxbytes=0
autorestart=false
startretries=0

</code></pre>
]]></description><link>http://an.forum.genostack.com/topic/980/rath服务化部署</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 12:33:11 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/980.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Aug 2023 08:09:43 GMT</pubDate><ttl>60</ttl></channel></rss>