-
make sure rvm current is [ruby-version]@teachme-now
-
run ‘passenger-install-apache2-module’
-
passenger installation will give the configuration for apache.conf. Add it
-
create app config in /etc/apache2/sites-available/teachme.loc with the following
<VirtualHost *:80> ServerName omniauth-tester.loc DocumentRoot /path/to/your/app/public RailsEnv development <Directory /path/to/your/app/public> AllowOverride all Options -MultiViews </Directory> </VirtualHost>
Make sure DocumentRoot and Directory points to public dir in the app
-
add /ets/hosts record with the following 127.0.0.1 omniauth-tester.loc
-
127.0.0.1 can be 127.0.1.1 or 0.0.0.0 depending on your system configurations and running apps
-
run ‘sudo a2ensite teachme.loc’ and ‘sudo /etc/init.d/apache2 reload’