... | ... | @@ -7,10 +7,10 @@ $ passenger-install-apache2-module |
|
|
Adicionar ao arquivo de configuração do Apache2 (/etc/apache2/apache2.conf) o seguinte:
|
|
|
<pre>
|
|
|
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.2.1/gems/passenger-5.0.15/buildout/apache2/mod_passenger.so
|
|
|
<IfModule mod_passenger.c>
|
|
|
\<IfModule mod_passenger.c\>
|
|
|
PassengerRoot /usr/local/rvm/gems/ruby-2.2.1/gems/passenger-5.0.15
|
|
|
PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.2.1/wrappers/ruby
|
|
|
</IfModule>
|
|
|
\</IfModule\>
|
|
|
</pre>
|
|
|
<pre>
|
|
|
$ cp /etc/apache2/sites-available/default /etc/apache2/sites-available/projectname
|
... | ... | @@ -18,12 +18,12 @@ $ cp /etc/apache2/sites-available/default /etc/apache2/sites-available/projectna |
|
|
|
|
|
3. Alterar as linhas:
|
|
|
<pre>
|
|
|
<VirtualHost *:80>
|
|
|
\<VirtualHost *:80\>
|
|
|
# Change these 3 lines to suit your project
|
|
|
RailsEnv development
|
|
|
ServerName dev.blah.com # ***OPCIONAL***
|
|
|
DocumentRoot /home/myuser/www/my_project/public # Note the 'public' directory
|
|
|
</VirtualHost>
|
|
|
\</VirtualHost\>
|
|
|
</pre>
|
|
|
<pre>
|
|
|
$ a2ensite projectname
|
... | ... | |