Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

sharehub is a picture or photo sharing website based on rails.It's not perfect now,but working.I will working on it.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Rakefile

ShareHub: Picture or Photo Sharing Site

This is my first rails app.For Picture and Photo Sharing.

Live demo on heroku:


Get the code

git clone git://
cd sharehub
bundle install

Database setup & Go

cp config/database-sample.yml config/database.yml 
rake db:migrate
rails s

deploy to production

1、like above get the code; 2、config the database

cp config/database.yml.example config/database.yml
vim database.yml #edit the database config
RAILS_ENV=production rake db:create
RAILS_ENV=production rake db:migrate

3、config nginx and unicorn

cp config/unicorn.rb.example config/unicorn.rb
cp config/nginx.conf.example config/nginx.conf
vim config/nginx.conf #change the url
ln -nfs $(pwd)/config/nginx.conf /etc/nginx/sites-enabled/sharehub
mkdir -p tmp/pids
touch tmp/pids/
rake assets:precompile
sudo nginx -s reload #maybe you should restart the nginx
unicorn -c config/unicorn.rb -E production -D

4、go to your url.

Still not perfect

Lots work to do.I will working on it.

Something went wrong with that request. Please try again.