Skip to content
An example rails application / blog
Ruby HTML CSS JavaScript CoffeeScript
Find file
Latest commit 9cdcdab @mpapis Merge pull request #4 from ethansr/upgrade_rails
Rails 4, Bootstrap, Authentication, closes #3, #2, #1
Failed to load latest commit information.
app Update views for Bootstrap and Authorization
config Add bootstrap formating and Devise Authentication
doc initial
lib deploy: remove duplicate error status line on failure
log initial
public initial
vendor initial
.gitignore initial
Gemfile Add bootstrap formating and Devise Authentication
Gemfile.lock Add bootstrap formating and Devise Authentication initial README
Rakefile initial initial

Example Rails application

  1. Deployment with Capistrano
  2. Server with Unicorn + Nginx proxy
  3. Database with Sqlite3

Example nginx proxy config

server {
  listen   80;

  access_log  /var/log/nginx/;
  error_log  /var/log/nginx/;

  location / {
    proxy_pass        http://unix:/home/ad/app/shared/pids/unicorn.socket;
    proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header  X-Real-IP         $remote_addr;
    proxy_set_header  Host              $http_host;
    # this is required for HTTPS (another server section):
    # proxy_set_header X-Forwarded-Proto https;
Something went wrong with that request. Please try again.