Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is how I deployed the application locally.</p> <pre><code>sudo gem install passenger sudo apt-get install apache2-dev libapr1-dev libaprutil1-dev sudo passenger-install-apache2-module </code></pre> <p><strong>/etc/apache2/mods-available/passenger.load</strong></p> <pre><code>LoadModule passenger_module /home/insane-36/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/ext/apache2/mod_passenger.so </code></pre> <p><strong>/etc/apache2/mods-available/passenger.conf</strong></p> <pre><code>PassengerRoot /home/insane-36/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12 PassengerRuby /home/insane-36/.rvm/wrappers/ruby-1.9.3-p194/ruby </code></pre> <p>Now, enabled the mod-passenger for apache as;</p> <pre><code>&gt; sudo a2enmod passenger </code></pre> <p>Created a rails application inside /home/insane-36/www/</p> <p><strong>rails new testing -T -D mysql</strong></p> <p>Created a symlink to the application in the /var/www/ folder as;</p> <blockquote> <p>ln -s /home/insane-36/www/testing /var/www/testing</p> </blockquote> <p>Created a file in /etc/apache2/sites-available/testing</p> <pre><code>&lt;VirtualHost *:80&gt; ServerAdmin admin@example.com ServerName testing DocumentRoot /var/www/testing/public/ &lt;Directory /var/www/testing/public/&gt; Options Indexes +ExecCGI FollowSymLinks Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>Enabled the site using,</p> <blockquote> <p>sudo a2ensite testing</p> </blockquote> <p>Added the ServerName chosen for and Created a file in /etc/apache2/sites-available/testingthe site to the /etc/hosts file;</p> <blockquote> <p>testing 127.0.0.1</p> </blockquote> <p>NOTE: Be sure to enable the permission 755 to the current user directory.</p> <blockquote> <p>chmod 755 /home/insane-36</p> </blockquote> <pre><code> bundle exec rake assets:precompile to compile your assets periodically. </code></pre> <p>I still have a problem here. I have managed to make the application work. But, everytime I make changes to the application, I need to reload the server. Is there some ways to deal with this so that server automatically tracks the files being changes then reload the server or combine the changes. </p> <p>Some notes suggested if I added empty file tmp/restart.txt should work for restarting the app and bring the changes but doesnot work for me.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload