|
155.
|
|
|
Ruby on Rails is an open source web framework for developing database backed web applications. It is optimized for sustainable productivity of the programmer since it lets the programmer to write code by favouring convention over configuration.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:985(para)
|
|
156.
|
|
|
Before installing <application>Rails</application> you should install <application>Apache</application> and <application>MySQL</application>. To install the <application>Apache</application> package, please refer to <xref linkend="httpd"/>. For instructions on installing <application>MySQL</application> refer to <xref linkend="mysql"/>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:992(para)
|
|
157.
|
|
|
Once you have <application>Apache</application> and <application>MySQL</application> packages installed, you are ready to install <application>Ruby on Rails</application> package.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1000(para)
|
|
158.
|
|
|
To install the <application>Ruby</application> base packages and <application>Ruby on Rails</application>, you can enter the following command in the terminal prompt:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1007(para)
|
|
159.
|
|
|
sudo apt install rails
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1013(command)
|
|
160.
|
|
|
Modify the <filename>/etc/apache2/sites-available/000-default.conf</filename> configuration file to setup your domains.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1019(para)
|
|
161.
|
|
|
The first thing to change is the <emphasis>DocumentRoot</emphasis> directive:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1023(para)
|
|
162.
|
|
|
DocumentRoot /path/to/rails/application/public
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1027(programlisting)
|
|
163.
|
|
|
Next, change the <Directory "/path/to/rails/application/public"> directive:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1030(para)
|
|
164.
|
|
|
<Directory "/path/to/rails/application/public">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
allow from all
AddHandler cgi-script .cgi
</Directory>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
<Directory "/шлях/до/програми/rails/public">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
allow from all
AddHandler cgi-script .cgi
</Directory>
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:1034(programlisting)
|