Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An example rails application / blog

branch: master
Octocat-spinner-32 app initial March 09, 2012
Octocat-spinner-32 config move to cap3 ... not sure if it works December 13, 2013
Octocat-spinner-32 db initial March 09, 2012
Octocat-spinner-32 doc initial March 09, 2012
Octocat-spinner-32 lib initial March 09, 2012
Octocat-spinner-32 log initial March 09, 2012
Octocat-spinner-32 public initial March 09, 2012
Octocat-spinner-32 script initial March 09, 2012
Octocat-spinner-32 vendor initial March 09, 2012
Octocat-spinner-32 .gitignore initial March 09, 2012
Octocat-spinner-32 Capfile move to cap3 ... not sure if it works December 13, 2013
Octocat-spinner-32 Gemfile move to cap3 ... not sure if it works December 13, 2013
Octocat-spinner-32 Gemfile.lock updating gems March 25, 2014
Octocat-spinner-32 README.md initial README March 11, 2012
Octocat-spinner-32 Rakefile initial March 09, 2012
Octocat-spinner-32 config.ru initial March 09, 2012
README.md

Example Rails application

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

Example nginx proxy config

server {
  listen   80;
  server_name  ad.niczsoft.com;

  access_log  /var/log/nginx/ad.niczsoft.com.access.log;
  error_log  /var/log/nginx/ad.niczsoft.com.error.log;

  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.