Social teaching network
Ruby CSS HTML CoffeeScript Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
spec
test
vendor
.gitignore
.ruby-version
Capfile
Gemfile
Gemfile.lock
README.rdoc
Rakefile
config.ru

README.rdoc

Teachme social network

Steps to test OAuth

  • 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'